84% manual-cron

Code Review | Manual Cron

WordPress plugin Manual Cron scored 84% from 54 tests.

About plugin

  • Plugin page: manual-cron
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Dec 14, 2015
  • Latest release: Dec 26, 2015
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: szepe.viktor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,259 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Manual Cron
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.61 ▼8.53
Dashboard /wp-admin3.32 ▲0.0149.76 ▼0.23
Posts /wp-admin/edit.php3.37 ▲0.0155.11 ▲1.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.74 ▼35.10
Media Library /wp-admin/upload.php3.24 ▲0.0147.65 ▲11.72

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Manual Cron
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲5213.26 ▲0.121.62 ▼0.5141.71 ▼2.20
Dashboard /wp-admin2,244 ▲384.87 ▼1.02101.48 ▼9.5141.67 ▲2.60
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0040.58 ▲1.0734.64 ▲0.24
Add New Post /wp-admin/post-new.php1,372 ▼16117.61 ▼5.62802.51 ▲42.6846.99 ▼14.74
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.17107.59 ▲7.3052.82 ▲6.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/manual-cron/manual-cron.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: cron job, execute, cron, manual, wp-cron

manual-cron/manual-cron.php Passed 13 tests

This is the main PHP file of "Manual Cron" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Triggers WP-cron from a Dashboard widget and displays cron output.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161022
JavaScript12120

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin