83% delete-comments-on-a-schedule

Code Review | Delete Comments on a Schedule

WordPress plugin Delete Comments on a Schedule scored83%from 54 tests.

About plugin

  • Plugin page: delete-comments-o...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2023
  • Latest release: Jan 24, 2023
  • Number of updates: 3
  • Update frequency: every 43.3 days
  • Top authors: papankevin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.07ms] Passed 4 tests

An overview of server-side resources used by Delete Comments on a Schedule
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.69 ▲3.30
Dashboard /wp-admin3.34 ▼0.0045.10 ▼12.38
Posts /wp-admin/edit.php3.46 ▲0.1047.33 ▼0.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.55 ▼14.24
Media Library /wp-admin/upload.php3.26 ▲0.0434.87 ▲2.92

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
benawp_dcos_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Delete Comments on a Schedule
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.781.54 ▼0.1736.89 ▼8.73
Dashboard /wp-admin2,206 ▲154.85 ▼0.09112.90 ▲1.2940.92 ▼1.92
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.1039.32 ▼2.8634.19 ▼1.19
Add New Post /wp-admin/post-new.php1,535 ▲623.21 ▼0.20602.12 ▼54.9548.76 ▼2.23
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0498.04 ▼9.4841.75 ▼5.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delete-comments-on-a-schedule/includes/benawp-delete-comments-query.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delete-comments-on-a-schedule/includes/benawp-delete-comments-settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

delete-comments-on-a-schedule/benawp-delete-comments-schedule.php 85% from 13 tests

The primary PHP file in "Delete Comments on a Schedule" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("delete-comments-on-a-schedule.php" instead of "benawp-delete-comments-schedule.php")

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
Good job! No executable or dangerous file extensions detected166 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33934115
PO File181330
Markdown114021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/reglages-de-delete-comments-on-a-schedule.png99.35KB40.06KB▼ 59.68%