84% simple-no-comments

Code Review | Simple No Comments

WordPress plugin Simple No Comments scored84%from 54 tests.

About plugin

  • Plugin page: simple-no-comments
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Jun 6, 2014
  • Latest release: Jun 6, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jitendra5984 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /21,939 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Simple No Comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.93 ▼1.31
Dashboard /wp-admin3.32 ▲0.0151.10 ▼1.66
Posts /wp-admin/edit.php3.37 ▲0.0149.26 ▼2.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.27 ▼8.26
Media Library /wp-admin/upload.php3.24 ▲0.0142.40 ▲2.97
All Comments /wp-admin/edit-comments.php3.3042.34

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple No Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,764 ▼2214.20 ▼0.151.79 ▼0.1944.11 ▲0.82
Dashboard /wp-admin2,175 ▼25.62 ▲0.1193.65 ▼11.0843.24 ▼7.28
Posts /wp-admin/edit.php2,079 ▼212.01 ▲0.0136.75 ▼4.2438.69 ▼1.61
Add New Post /wp-admin/post-new.php1,508 ▼1823.09 ▼0.02666.34 ▼15.7563.73 ▲8.90
Media Library /wp-admin/upload.php1,379 ▼154.14 ▼0.06111.87 ▲3.2949.05 ▲0.93
All Comments /wp-admin/edit-comments.php1,7842.2439.5137.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-no-comments/simple-no-comment.php:13

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 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
10 plugin tags: disable comment, simple, remove comment, complete, comment...

simple-no-comments/simple-no-comment.php 92% from 13 tests

The primary PHP file in "Simple No Comments" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-no-comments.php" instead of "simple-no-comment.php")

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
Everything looks great! No dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171522

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected