84% comment-moderation-info

Code Review | Comments Moderation Info

WordPress plugin Comments Moderation Info scored 84% from 54 tests.

About plugin

  • Plugin page: comment-moderatio...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Oct 26, 2022
  • Number of updates: 7
  • Update frequency: every 54.0 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,272 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
This plugin's installer ran successfully

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

Server-side resources used by Comments Moderation Info
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.38 ▼0.18
Dashboard /wp-admin3.34 ▲0.0443.77 ▼5.72
Posts /wp-admin/edit.php3.39 ▲0.0344.13 ▼7.43
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.72 ▼16.28
Media Library /wp-admin/upload.php3.26 ▲0.0335.65 ▼0.68

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Comments Moderation Info
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.351.77 ▼0.0441.14 ▼9.25
Dashboard /wp-admin2,209 ▲215.85 ▲1.02101.17 ▼10.1240.14 ▲0.66
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0332.96 ▼7.3732.33 ▼3.03
Add New Post /wp-admin/post-new.php1,533 ▲523.18 ▲5.19608.35 ▼10.3565.89 ▼5.49
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.1297.45 ▼10.4746.62 ▲3.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/comment-moderation-info/comment-moderation-info.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: comment author, comments revision, comments, comments moderation, comment date

comment-moderation-info/comment-moderation-info.php Passed 13 tests

The main file in "Comments Moderation Info" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
90 characters long description:
Display comments moderation info such as last modified date and the author of the edition.

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
Success! There were no dangerous files found in this plugin158 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12246158

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin