90% wp-comment-humility

Code Review | WP Comment Humility

WordPress plugin WP Comment Humility scored90%from 54 tests.

About plugin

  • Plugin page: wp-comment-humility
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Sep 21, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /3,490 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.98ms] Passed 4 tests

A check of server-side resources used by WP Comment Humility
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.45 ▲1.66
Dashboard /wp-admin3.31 ▲0.0054.74 ▲8.50
Posts /wp-admin/edit.php3.36 ▲0.0047.72 ▼1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.38 ▼8.62
Media Library /wp-admin/upload.php3.23 ▲0.0034.87 ▲0.34
Comments 0 /wp-admin/edit-comments.php3.2437.21

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Comment Humility
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4413.17 ▼1.251.74 ▲0.0442.25 ▲2.51
Dashboard /wp-admin2,196 ▲85.91 ▲0.83108.54 ▲7.5238.96 ▼2.94
Posts /wp-admin/edit.php2,079 ▼72.06 ▲0.0436.01 ▼0.9730.05 ▼3.80
Add New Post /wp-admin/post-new.php1,527 ▼1023.31 ▲5.21657.68 ▲31.3453.87 ▼1.94
Media Library /wp-admin/upload.php1,372 ▼194.22 ▼0.0097.65 ▼3.4041.37 ▼1.29
Comments 0 /wp-admin/edit-comments.php1,7792.2834.8532.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected 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

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: menu, comment, core

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

The main PHP script in "WP Comment Humility" version 0.1.0 is automatically included on every request by WordPress
43 characters long description:
Move the "Comments" menu underneath "Posts"

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected39 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1103524
Markdown112015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin