94% amr-cron-manager

Code Review | amr cron manager

WordPress plugin amr cron manager scored 94% from 54 tests.

About plugin

  • Plugin page: amr-cron-manager
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 6, 2016
  • Latest release: Aug 17, 2020
  • Number of updates: 12
  • Update frequency: every 127.8 days
  • Top authors: anmari (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active / 5,326 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by amr cron manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1842.64 ▲19.33
Dashboard /wp-admin3.13 ▲0.0850.65 ▲2.95
Posts /wp-admin/edit.php3.18 ▲0.0844.50 ▼7.58
Add New Post /wp-admin/post-new.php5.49 ▲0.0693.33 ▼578.39
Media Library /wp-admin/upload.php3.07 ▲0.0730.02 ▼6.51
Cron Manager /wp-admin/tools.php?page=amr-cron-manager3.0630.87

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for amr cron manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.91 ▲0.007.67 ▼2.2050.37 ▼4.03
Dashboard /wp-admin2,972 ▲385.89 ▼0.06142.48 ▼11.12118.36 ▼0.10
Posts /wp-admin/edit.php2,744 ▲52.82 ▲0.1368.38 ▼2.0990.54 ▼13.25
Add New Post /wp-admin/post-new.php1,678 ▼518.76 ▼0.14384.93 ▼38.83128.01 ▼14.56
Media Library /wp-admin/upload.php1,812 ▲85.02 ▲0.01170.83 ▲5.02132.71 ▼1.93
Cron Manager /wp-admin/tools.php?page=amr-cron-manager2,3322.0864.1184.31

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 is_admin() in wp-content/plugins/amr-cron-manager/amr-cron-manager.php:521

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: cron manager, debug, cron control, cron cleaner, cron...

amr-cron-manager/amr-cron-manager.php Passed 13 tests

The principal PHP file in "amr cron manager" v. 2.3 is loaded by WordPress automatically on each request
104 characters long description:
Overview of cron with action check and arguments, plus ability to delete comprehensively, and reschedule

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
Success! There were no dangerous files found in this plugin389 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18154389

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin