84% wp-comment-notes

Code Review | WP Comment Notes

WordPress plugin WP Comment Notes scored84%from 54 tests.

About plugin

  • Plugin page: wp-comment-notes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Sep 29, 2013
  • Latest release: Sep 29, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: norcross (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,863 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.55ms] Passed 4 tests

Analyzing server-side resources used by WP Comment Notes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.87 ▲2.84
Dashboard /wp-admin3.35 ▲0.0144.05 ▼13.98
Posts /wp-admin/edit.php3.40 ▲0.0548.89 ▲4.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.05 ▲4.77
Media Library /wp-admin/upload.php3.27 ▲0.0439.13 ▲6.26

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

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

Browser metrics Passed 4 tests

WP Comment Notes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.42 ▲0.131.79 ▲0.1844.91 ▲8.54
Dashboard /wp-admin2,203 ▲115.79 ▲0.8294.17 ▼14.7741.63 ▼1.09
Posts /wp-admin/edit.php2,091 ▲52.03 ▲0.0139.17 ▲2.3935.00 ▲1.04
Add New Post /wp-admin/post-new.php6,302 ▲4,78321.64 ▼1.54841.57 ▲174.5777.88 ▲20.03
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0293.38 ▼1.9541.05 ▼3.03

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-comment-notes/wp-comment-notes.php:46

User-side errors Passed 1 test

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

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
3 plugin tags: comments, comment notes, comment

wp-comment-notes/wp-comment-notes.php Passed 13 tests

The main PHP script in "WP Comment Notes" version 1.0.0 is automatically included on every request by WordPress
50 characters long description:
Add custom notes before or after the comment form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin244 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP18893167
CSS26045
SVG20032

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin