78% cron-tasks-viewer

Code Review | Cron View

WordPress plugin Cron View scored78%from 54 tests.

About plugin

  • Plugin page: cron-tasks-viewer
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.0
  • WordPress version: 6.3.1
  • First release: Feb 28, 2015
  • Latest release: Feb 28, 2015
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: drmaxim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,966 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 successfully, without throwing any errors or notices

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

Server-side resources used by Cron View
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.11 ▼1.66
Dashboard /wp-admin3.32 ▲0.0252.82 ▼7.77
Posts /wp-admin/edit.php3.37 ▲0.0252.59 ▲3.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.60 ▼15.41
Media Library /wp-admin/upload.php3.24 ▲0.0138.10 ▼2.51
WP-Cron Tasks /wp-admin/tools.php?page=wp-maxv-cron-tool3.2337.34

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Cron View
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.26 ▼0.111.88 ▲0.2546.31 ▲3.64
Dashboard /wp-admin2,199 ▲225.58 ▼0.0987.53 ▼7.7743.88 ▲1.43
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0140.44 ▼3.1834.50 ▼12.59
Add New Post /wp-admin/post-new.php1,531 ▲323.21 ▲0.20665.66 ▼30.6949.46 ▼6.48
Media Library /wp-admin/upload.php1,398 ▼54.25 ▲0.0699.34 ▼7.9042.33 ▼3.19
WP-Cron Tasks /wp-admin/tools.php?page=wp-maxv-cron-tool8681.8824.5829.41

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cron-tasks-viewer/css/index.php
    • > /wp-content/plugins/cron-tasks-viewer/index.php
    • > /wp-content/plugins/cron-tasks-viewer/js/index.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cron-tasks-viewer/MaxVCronTool.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: cron, wp_cron, wp-cron, cronjob, wordpress cron

cron-tasks-viewer/plugin.php 92% from 13 tests

The principal PHP file in "Cron View" v. 0.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cron-tasks-viewer.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin6,249 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS127706,183
PHP325865
JavaScript1051

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin