89% improved-cron

Code Review | Improved Cron

WordPress plugin Improved Cron scored89%from 54 tests.

About plugin

  • Plugin page: improved-cron
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2013
  • Latest release: Sep 28, 2015
  • Number of updates: 16
  • Update frequency: every 48.8 days
  • Top authors: cpkwebsolutions (56.25%)hinnerk (50%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /7,890 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.31ms] Passed 4 tests

This is a short check of server-side resources used by Improved Cron
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.04 ▲5.93
Dashboard /wp-admin3.38 ▲0.0748.09 ▼1.05
Posts /wp-admin/edit.php3.49 ▲0.1344.18 ▼1.15
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.98 ▼18.94
Media Library /wp-admin/upload.php3.30 ▲0.0735.02 ▲3.90
Improved Cron /wp-admin/tools.php?page=pws_imcron_manage3.2931.60

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Improved Cron
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.53 ▲0.171.70 ▼0.1443.69 ▲7.61
Dashboard /wp-admin2,199 ▲355.48 ▼0.0594.92 ▼19.1042.91 ▼3.32
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0333.18 ▼7.9734.73 ▲4.88
Add New Post /wp-admin/post-new.php1,529 ▼823.55 ▲5.22685.78 ▲83.4850.43 ▼22.81
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0394.07 ▼4.8440.08 ▼3.22
Improved Cron /wp-admin/tools.php?page=pws_imcron_manage1,1172.0221.9730.41

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Interface of Improved Cron)
You can take inspiration from this readme.txt

improved-cron/imcron.php 92% from 13 tests

The primary PHP file in "Improved Cron" version 1.3.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("improved-cron.php" instead of "imcron.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected434 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP57516398
HTML124036

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.67
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1986.36%
▷ Protected methods00.00%
▷ Private methods313.64%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.36MB with 0.25MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png373.64KB120.08KB▼ 67.86%