84% comment-menu-links

Code Review | Comment Menu Links

WordPress plugin Comment Menu Links scored84%from 54 tests.

About plugin

  • Plugin page: comment-menu-links
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: May 21, 2012
  • Latest release: Dec 28, 2014
  • Number of updates: 7
  • Update frequency: every 136.0 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,327 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.67ms] Passed 4 tests

Server-side resources used by Comment Menu Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.26 ▼5.55
Dashboard /wp-admin3.32 ▼0.0345.03 ▼17.90
Posts /wp-admin/edit.php3.37 ▲0.0142.60 ▼0.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.86 ▲0.85
Media Library /wp-admin/upload.php3.24 ▲0.0136.82 ▲4.87
Trash /wp-admin/edit-comments.php?comment_status=trash3.2433.95
All Comments /wp-admin/edit-comments.php3.2544.37
Approved /wp-admin/edit-comments.php?comment_status=approved3.2535.79
Pending /wp-admin/edit-comments.php?comment_status=moderated3.2431.81
Spam /wp-admin/edit-comments.php?comment_status=spam3.2433.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Comment Menu Links: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.35 ▼0.201.63 ▼0.2438.01 ▼6.27
Dashboard /wp-admin2,224 ▲465.54 ▼0.1783.57 ▼31.1638.87 ▼5.45
Posts /wp-admin/edit.php2,126 ▲262.02 ▲0.0234.59 ▼0.6235.02 ▼6.19
Add New Post /wp-admin/post-new.php1,550 ▲1923.33 ▲0.35609.28 ▲20.6748.13 ▼3.95
Media Library /wp-admin/upload.php1,432 ▲324.24 ▲0.0799.29 ▲4.3642.12 ▲2.53
Trash /wp-admin/edit-comments.php?comment_status=trash1,5682.2836.6929.98
All Comments /wp-admin/edit-comments.php1,8402.2744.2339.85
Approved /wp-admin/edit-comments.php?comment_status=approved1,8252.3034.7932.80
Pending /wp-admin/edit-comments.php?comment_status=moderated1,5622.2736.4829.35
Spam /wp-admin/edit-comments.php?comment_status=spam1,5652.2636.3928.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-menu-links/comment-menu-links.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: mordauk, pippin williamson, pippinsplugins, comment, comment status...

comment-menu-links/comment-menu-links.php Passed 13 tests

The main PHP file in "Comment Menu Links" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Adds "Pending", "Approved", "Spam" and "Trash" sub menu items to the Dashboard Comments menu

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin30 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13818
JavaScript10012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png64.84KB25.45KB▼ 60.75%