78% simply-disable-comments

Code Review | Simply Disable Comments

WordPress plugin Simply Disable Comments scored78%from 54 tests.

About plugin

  • Plugin page: simply-disable-co...
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 11, 2023
  • Latest release: Jul 19, 2023
  • Number of updates: 3
  • Update frequency: every 23.7 days
  • Top authors: handyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Simply Disable Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0135.15 ▼15.37
Dashboard /wp-admin3.35 ▲0.0445.00 ▼8.31
Posts /wp-admin/edit.php3.37 ▲0.0146.99 ▼5.81
Add New Post /wp-admin/post-new.php5.86 ▼0.0386.52 ▼16.75
Media Library /wp-admin/upload.php3.27 ▲0.0335.40 ▲0.19
All Comments /wp-admin/edit-comments.php3.0823.87

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Simply Disable Comments: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,758 ▲2313.29 ▼1.061.80 ▲0.0343.78 ▼3.38
Dashboard /wp-admin2,168 ▼235.80 ▼0.11105.28 ▲0.3437.01 ▼4.98
Posts /wp-admin/edit.php1,925 ▼1672.04 ▲0.0450.27 ▲12.0032.81 ▼5.83
Add New Post /wp-admin/post-new.php1,499 ▼1523.56 ▲6.13642.04 ▼55.0773.39 ▼3.76
Media Library /wp-admin/upload.php1,353 ▼324.19 ▲0.01119.59 ▼25.4652.98 ▲7.81
All Comments /wp-admin/edit-comments.php280.440.103.53

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'ID' of non-object
    • > GET request to /wp-admin/edit-comments.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit-comments.php
    • > Network (severe)
    wp-admin/edit-comments.php - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 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
3 plugin tags: comments, spam, disable-comments

simply-disable-comments/plugin.php 92% from 13 tests

The primary PHP file in "Simply Disable Comments" version 0.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simply-disable-comments.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin197 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP240113170
JavaScript23027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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
Namespaces1
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin