84% wpdelaycron

Code Review | WP Delay Cron

WordPress plugin WP Delay Cron scored84%from 54 tests.

About plugin

  • Plugin page: wpdelaycron
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2015
  • Latest release: May 2, 2016
  • Number of updates: 8
  • Update frequency: every 46.4 days
  • Top authors: computermagic (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,299 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.24ms] Passed 4 tests

Server-side resources used by WP Delay Cron
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.59 ▲0.89
Dashboard /wp-admin3.33 ▲0.0250.84 ▲0.42
Posts /wp-admin/edit.php3.38 ▲0.0248.63 ▲2.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.49 ▼4.64
Media Library /wp-admin/upload.php3.25 ▲0.0237.89 ▲3.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Delay Cron
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.75 ▲0.391.73 ▼0.3745.24 ▼1.84
Dashboard /wp-admin2,222 ▲315.88 ▲0.9694.89 ▼15.2641.11 ▼0.10
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0036.21 ▼5.8535.58 ▲0.67
Add New Post /wp-admin/post-new.php1,546 ▲823.35 ▲0.02685.64 ▲59.2466.13 ▲9.19
Media Library /wp-admin/upload.php1,401 ▲104.24 ▼0.0096.69 ▼4.0141.69 ▲0.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • wpdelaycron_delay_count
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • wpdelaycron_current_count

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpdelaycron/wpdelaycron.php

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: high, cron, delay, traffic

wpdelaycron/wpdelaycron.php Passed 13 tests

The entry point to "WP Delay Cron" version 0.0.6 is a PHP file that has certain tags in its header comment area
54 characters long description:
Prevent wordpress from running cron on each page view.

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
No dangerous file extensions were detected66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1486966

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin