84% multimedia-comments

Code Review | CIO Multimedia Comments

WordPress plugin CIO Multimedia Comments scored 84% from 54 tests.

About plugin

  • Plugin page: multimedia-comments
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Dec 26, 2017
  • Number of updates: 3
  • Update frequency: every 276.7 days
  • Top authors: VisualData (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.03ms] Passed 4 tests

Analyzing server-side resources used by CIO Multimedia Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.28 ▼3.41
Dashboard /wp-admin3.35 ▲0.0443.36 ▼0.98
Posts /wp-admin/edit.php3.40 ▲0.0444.68 ▼3.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.85 ▼16.53
Media Library /wp-admin/upload.php3.27 ▲0.0438.86 ▲5.15

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

CIO Multimedia Comments: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.25 ▼1.341.73 ▲0.0443.37 ▼4.26
Dashboard /wp-admin2,208 ▲205.82 ▲0.9598.97 ▼18.7840.31 ▲0.28
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0735.82 ▲1.8232.55 ▼0.89
Add New Post /wp-admin/post-new.php1,539 ▲623.22 ▲0.16665.38 ▼13.8766.19 ▲6.31
Media Library /wp-admin/upload.php1,396 ▲84.22 ▲0.07100.30 ▼7.4445.65 ▼0.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/multimedia-comments/class-group-pods.php
    • > /wp-content/plugins/multimedia-comments/class-mmcomments.php
    • > /wp-content/plugins/multimedia-comments/multimedia-comments.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

multimedia-comments/multimedia-comments.php 92% from 13 tests

The entry point to "CIO Multimedia Comments" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin291 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3328126291

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity22.00
▷ Minimum class complexity18.00
▷ Maximum class complexity26.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected