79% wp-comments-manager

Code Review | Wordpress Comments Manager

WordPress plugin Wordpress Comments Manager scored79%from 54 tests.

About plugin

  • Plugin page: wp-comments-manager
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 12, 2017
  • Latest release: Feb 27, 2017
  • Number of updates: 8
  • Update frequency: every 4.4 days
  • Top authors: kn007 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /2,332 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.78ms] Passed 4 tests

Analyzing server-side resources used by Wordpress Comments Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.95 ▼34.57
Dashboard /wp-admin2.05 ▼1.268.29 ▼43.92
Posts /wp-admin/edit.php2.05 ▼1.316.39 ▼42.64
Add New Post /wp-admin/post-new.php2.05 ▼3.845.50 ▼81.97
Media Library /wp-admin/upload.php2.05 ▼1.185.83 ▼28.69

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Comments Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.24 ▼1.341.65 ▼0.2839.21 ▼6.45
Dashboard /wp-admin2,231 ▲435.85 ▲0.0198.64 ▼4.6539.68 ▼3.62
Posts /wp-admin/edit.php2,114 ▲252.04 ▼0.0135.99 ▼1.6434.13 ▼1.60
Add New Post /wp-admin/post-new.php1,530 ▼317.74 ▼5.57637.38 ▼34.9152.23 ▼5.04
Media Library /wp-admin/upload.php1,416 ▲254.23 ▲0.0396.89 ▼0.3642.97 ▲1.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wpcm handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
You can look at the official readme.txt

wp-comments-manager/wp-comments-manager.php 92% from 13 tests

The main PHP file in "Wordpress Comments Manager" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 257 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin440 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12714427
JavaScript10012
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin