84% remove-comment-notes

Code Review | Remove Comment Notes

WordPress plugin Remove Comment Notes scored84%from 54 tests.

About plugin

  • Plugin page: remove-comment-notes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Jul 21, 2013
  • Latest release: Apr 17, 2014
  • Number of updates: 6
  • Update frequency: every 45.0 days
  • Top authors: norcross (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /6,035 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.23ms] Passed 4 tests

Analyzing server-side resources used by Remove Comment Notes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.07 ▼3.42
Dashboard /wp-admin3.31 ▲0.0146.08 ▲0.84
Posts /wp-admin/edit.php3.36 ▲0.0147.93 ▲1.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.05 ▼3.98
Media Library /wp-admin/upload.php3.23 ▲0.0135.12 ▲2.65

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

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

Browser metrics Passed 4 tests

Remove Comment Notes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.521.65 ▼0.0240.49 ▼2.18
Dashboard /wp-admin2,209 ▲174.80 ▼0.16100.89 ▼18.4240.38 ▼4.05
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0539.83 ▼3.9934.64 ▼2.84
Add New Post /wp-admin/post-new.php1,547 ▲1418.34 ▼4.86619.08 ▼23.3569.16 ▲12.78
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0298.25 ▼10.1343.21 ▲0.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remove-comment-notes/remove-comment-notes.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: comment notes, comments

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

This is the main PHP file of "Remove Comment Notes" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Removes the notes below 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
No dangerous file extensions were detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1154318

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin