84% easycron

Code Review | Easycron

WordPress plugin Easycron scored84%from 54 tests.

About plugin

  • Plugin page: easycron
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 17, 2013
  • Latest release: Apr 29, 2023
  • Number of updates: 31
  • Update frequency: every 112.4 days
  • Top authors: easycron (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /11,604 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Easycron
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.13 ▼3.97
Dashboard /wp-admin3.32 ▲0.0145.08 ▼5.51
Posts /wp-admin/edit.php3.37 ▲0.0145.34 ▼14.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.56 ▼4.37
Media Library /wp-admin/upload.php3.24 ▲0.0131.11 ▼0.22

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easycron
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.72 ▲0.351.63 ▲0.0440.15 ▼4.05
Dashboard /wp-admin2,213 ▲365.61 ▲0.0280.08 ▼19.9688.75 ▲39.72
Posts /wp-admin/edit.php2,115 ▲151.99 ▼0.0238.53 ▼1.4438.02 ▼0.69
Add New Post /wp-admin/post-new.php1,553 ▲2522.95 ▼0.30620.57 ▼49.3752.06 ▼0.64
Media Library /wp-admin/upload.php1,418 ▲154.23 ▼0.0299.85 ▼1.8672.64 ▲30.03

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easycron/easycron.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: task scheduler, webcron, cron job, cron, wp-cron

easycron/easycron.php 92% from 13 tests

The main PHP script in "Easycron" version 1.3.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 203 characters long)

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
Everything looks great! No dangerous files found in this plugin251 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13327241
CSS11010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions11
▷ Named functions11100.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
3 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png151.27KB52.70KB▼ 65.16%
easycron_16x16.png0.56KB0.21KB▼ 61.78%
easycron_32x32.png0.68KB0.33KB▼ 50.79%