68% comments-on

Code Review | Comments On

WordPress plugin Comments On scored68%from 54 tests.

About plugin

  • Plugin page: comments-on
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2013
  • Latest release: Nov 27, 2013
  • Number of updates: 3
  • Update frequency: every 96.7 days
  • Top authors: seanchayes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,394 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Comments On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.87 ▼2.62
Dashboard /wp-admin3.34 ▲0.0443.72 ▼10.22
Posts /wp-admin/edit.php3.39 ▲0.0444.67 ▼3.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.13 ▼0.96
Media Library /wp-admin/upload.php3.26 ▲0.0436.11 ▲0.20

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Comments On: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.354.06 ▲2.2538.92 ▼4.67
Dashboard /wp-admin2,206 ▲184.87 ▼0.02106.94 ▲1.6441.53 ▲2.93
Posts /wp-admin/edit.php2,099 ▲101.99 ▲0.0341.90 ▲1.3035.65 ▲1.97
Add New Post /wp-admin/post-new.php1,514 ▼617.94 ▼5.14605.32 ▼77.8153.45 ▼8.58
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0193.73 ▼21.9541.69 ▼3.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/comments-on/views/admin.php
    • > /wp-content/plugins/comments-on/views/display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-on/plugin.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === comments-on === )
Please take inspiration from this readme.txt

comments-on/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Comments On" version 0.1
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("comments-on.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin128 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP35110866
Markdown122035
PO File10017
JavaScript20410
CSS2040

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin