90% wpr-comments-categories

Code Review | Comments Categories

WordPress plugin Comments Categories scored90%from 54 tests.

About plugin

  • Plugin page: wpr-comments-cate...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 3, 2019
  • Latest release: Sep 3, 2019
  • Number of updates: 4
  • Update frequency: every 2.8 days
  • Top authors: wpriders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.12ms] Passed 4 tests

Analyzing server-side resources used by Comments Categories
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.77 ▼3.18
Dashboard /wp-admin3.33 ▲0.0347.91 ▼6.76
Posts /wp-admin/edit.php3.45 ▲0.0944.89 ▼1.18
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.01 ▼9.37
Media Library /wp-admin/upload.php3.26 ▲0.0337.51 ▲0.09
Comments Categories /wp-admin/options-general.php?page=wpr-comments-category3.2331.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Comments Categories
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲14213.58 ▼0.708.91 ▲7.0539.03 ▼5.46
Dashboard /wp-admin2,223 ▲435.77 ▲0.1687.53 ▼4.2340.22 ▲1.99
Posts /wp-admin/edit.php2,130 ▲302.32 ▲0.1937.04 ▲2.2134.00 ▼3.60
Add New Post /wp-admin/post-new.php1,548 ▲2023.20 ▲0.02679.65 ▲45.5237.26 ▼21.53
Media Library /wp-admin/upload.php1,428 ▲254.58 ▲0.3999.36 ▼2.4943.36 ▼3.49
Comments Categories /wp-admin/options-general.php?page=wpr-comments-category8501.9526.3424.56

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: comments, categories

wpr-comments-categories/wpr-comments-categories.php Passed 13 tests

The principal PHP file in "Comments Categories" v. 1.0.0 is loaded by WordPress automatically on each request
27 characters long description:
WPR add comments categories

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin425 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP457118352
JavaScript23051
CSS23022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity20.00
▷ Minimum class complexity15.00
▷ Maximum class complexity25.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin