90% comment-crusher

Code Review | Comment Crusher

WordPress plugin Comment Crusher scored90%from 54 tests.

About plugin

  • Plugin page: comment-crusher
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Jun 29, 2018
  • Latest release: Dec 9, 2018
  • Number of updates: 6
  • Update frequency: every 27.7 days
  • Top authors: Olly - OWMC (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /614 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
Installer ran successfully

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

A check of server-side resources used by Comment Crusher
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.24 ▼14.17
Dashboard /wp-admin3.35 ▲0.0152.61 ▼13.69
Posts /wp-admin/edit.php3.45 ▲0.0958.42 ▲2.93
Add New Post /wp-admin/post-new.php5.93 ▲0.0596.01 ▼5.57
Media Library /wp-admin/upload.php3.28 ▲0.0539.59 ▲0.69
All Comments /wp-admin/edit-comments.php3.1228.29

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Comment Crusher
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,747 ▼1414.34 ▼0.191.56 ▼0.0640.16 ▲1.21
Dashboard /wp-admin2,164 ▼135.60 ▼0.0484.46 ▼11.0942.28 ▲1.93
Posts /wp-admin/edit.php1,943 ▼1572.00 ▼0.0043.02 ▲3.1935.85 ▼5.18
Add New Post /wp-admin/post-new.php1,499 ▼3723.29 ▲0.31614.89 ▼152.2551.63 ▼10.34
Media Library /wp-admin/upload.php1,369 ▼314.18 ▲0.04101.76 ▼3.7943.37 ▼3.31
All Comments /wp-admin/edit-comments.php2,1685.6173.5935.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: spam, comments

comment-crusher/comment-crusher.php Passed 13 tests

The principal PHP file in "Comment Crusher" v. 1.0.0 is loaded by WordPress automatically on each request
44 characters long description:
Disable and remove comments on your WP site.

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
Good job! No executable or dangerous file extensions detected170 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9101434170

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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