94% easycron

Code Review | Easycron

WordPress plugin Easycron scored 94% from 54 tests.

About plugin

  • Plugin page: easycron
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5.1
  • WordPress version: 5.8.1
  • First release: Oct 17, 2013
  • Latest release: Oct 9, 2020
  • Number of updates: 25
  • Update frequency: every 102.0 days
  • Top authors: easycron (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 9,614 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼148.54ms] Passed 4 tests

Server-side resources used by Easycron
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0338.29 ▲3.24
Dashboard /wp-admin3.10 ▲0.0452.92 ▼2.15
Posts /wp-admin/edit.php3.15 ▲0.0450.17 ▲2.79
Add New Post /wp-admin/post-new.php5.45 ▲0.0291.41 ▼593.58
Media Library /wp-admin/upload.php3.04 ▲0.0435.74 ▼1.20

Server storage [IO: ▲0.20MB] [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, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Easycron
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲10215.76 ▲0.248.05 ▼0.2849.72 ▼5.79
Dashboard /wp-admin2,979 ▲425.92 ▼0.00145.23 ▼1.25135.29 ▲13.81
Posts /wp-admin/edit.php2,759 ▲202.57 ▼0.1370.15 ▼2.1198.07 ▲1.23
Add New Post /wp-admin/post-new.php1,617 ▲1318.65 ▼0.16398.37 ▲15.74108.59 ▼6.02
Media Library /wp-admin/upload.php1,767 ▼404.99 ▼0.04133.73 ▼32.57151.06 ▲21.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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: cron job, wp-cron, cron, webcron, task scheduler

easycron/easycron.php 92% from 13 tests

The main PHP script in "Easycron" version 1.3 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 plugin250 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13327240
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.19MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png195.81KB68.71KB▼ 64.91%
easycron_32x32.png0.68KB0.33KB▼ 50.79%
easycron_16x16.png0.56KB0.21KB▼ 61.78%