79% delete-all-comments-of-website

Code Review | Delete All Comments of wordpress

WordPress plugin Delete All Comments of wordpress scored79%from 54 tests.

About plugin

  • Plugin page: delete-all-commen...
  • Plugin version: 5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 23, 2015
  • Latest release: Dec 1, 2023
  • Number of updates: 63
  • Update frequency: every 48.0 days
  • Top authors: royalnavneet (100%)

Code review

54 tests

User reviews

41 reviews

Install metrics

30,000+ active /423,038 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲4.97MB] [CPU: ▲22.30ms] Passed 4 tests

Server-side resources used by Delete All Comments of wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /8.79 ▲5.3361.08 ▲21.90
Dashboard /wp-admin8.81 ▲5.5169.51 ▲20.26
Posts /wp-admin/edit.php8.81 ▲5.4675.02 ▲28.31
Add New Post /wp-admin/post-new.php9.47 ▲3.58105.45 ▲18.73
Media Library /wp-admin/upload.php8.81 ▲5.5868.58 ▲35.78
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.8156.34
Delete Comments /wp-admin/tools.php?page=delete_comment8.8355.83

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
fs_accounts
widget_theysaidso_widget
fs_debug_mode
fs_gdpr
fs_active_plugins
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Delete All Comments of wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8314.72 ▲0.321.77 ▲0.0628.40 ▼16.16
Dashboard /wp-admin2,216 ▲385.74 ▲0.08103.32 ▼11.7649.50 ▲4.89
Posts /wp-admin/edit.php2,134 ▲342.08 ▲0.0842.68 ▲1.9736.89 ▼0.06
Add New Post /wp-admin/post-new.php1,545 ▲1922.22 ▼1.21703.75 ▲40.8052.95 ▼7.05
Media Library /wp-admin/upload.php1,433 ▲334.31 ▲0.11108.15 ▲7.8647.68 ▲5.58
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0671.7827.4030.17
Delete Comments /wp-admin/tools.php?page=delete_comment1,0341.7628.5643.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/delete-all-comments-of-website/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • fs_gdpr
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • fs_accounts
    • widget_recent-comments
    • fs_active_plugins
    • widget_theysaidso_widget
    • db_upgraded
    • fs_debug_mode

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
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

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 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
7 plugin tags: remove all, comment, comments, delete all comment, delete all...

delete-all-comments-of-website/delete-all-comments-of-wordpress-website.php 92% from 13 tests

"Delete All Comments of wordpress" version 5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("delete-all-comments-of-website.php" instead of "delete-all-comments-of-wordpress-website.php")

Code Analysis 97% from 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
There were no executable files found in this plugin32,872 lines of code in 127 files:
LanguageFilesBlank linesComment linesLines of code
PHP1087,36616,09130,742
JavaScript52762631,030
CSS126918859
Markdown1680214
JSON10027

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity90.29
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes45
▷ Abstract classes24.44%
▷ Concrete classes4395.56%
▷ Final classes00.00%
Methods1,132
▷ Static methods17315.28%
▷ Public methods79269.96%
▷ Protected methods151.33%
▷ Private methods32528.71%
Functions98
▷ Named functions98100.00%
▷ Anonymous functions00.00%
Constants124
▷ Global constants9979.84%
▷ Class constants2520.16%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/delete-all-comments-of-website.png9.16KB5.26KB▼ 42.58%
support/4.png11.42KB5.77KB▼ 49.50%
support/9.png6.14KB3.48KB▼ 43.40%
support/7.png11.07KB5.46KB▼ 50.68%