84% mdc-comment-toolbar

Code Review | MDC Comment Toolbar

WordPress plugin MDC Comment Toolbar scored84%from 54 tests.

About plugin

  • Plugin page: mdc-comment-toolbar
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2014
  • Latest release: Oct 18, 2015
  • Number of updates: 6
  • Update frequency: every 64.2 days
  • Top authors: mukto90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,667 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.30ms] Passed 4 tests

An overview of server-side resources used by MDC Comment Toolbar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0146.75 ▲0.71
Dashboard /wp-admin3.33 ▲0.0249.58 ▼6.07
Posts /wp-admin/edit.php3.38 ▲0.0253.02 ▲0.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.55 ▼16.44
Media Library /wp-admin/upload.php3.25 ▲0.0242.87 ▲5.64

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for MDC Comment Toolbar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.17 ▼0.061.91 ▲0.0745.04 ▼4.32
Dashboard /wp-admin2,211 ▲315.56 ▲0.0189.87 ▼4.8381.46 ▲38.61
Posts /wp-admin/edit.php2,116 ▲131.97 ▼0.0640.19 ▼2.4735.47 ▼3.76
Add New Post /wp-admin/post-new.php1,692 ▲16622.16 ▼0.91776.76 ▲71.0658.61 ▲0.09
Media Library /wp-admin/upload.php1,413 ▲164.15 ▼0.05130.92 ▲20.4952.34 ▲10.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mdc-comment-toolbar/mdc-option-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mdc-comment-toolbar/mdc-option-page.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #3 (Download page with different video formats)
You can take inspiration from this readme.txt

mdc-comment-toolbar/mdc-comment-toolbar.php Passed 13 tests

"MDC Comment Toolbar" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
MDC Comment Toolbar enables rich editor toolbar with media uploader in comment field.

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
No dangerous file extensions were detected125 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2129119
CSS1106

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-1.png54.20KB17.83KB▼ 67.10%
images/screenshot-2.png30.16KB10.03KB▼ 66.75%
images/icon.png3.18KB0.72KB▼ 77.36%