57% wp-cron-viewer-and-manager

Code Review | WP Cron Viewer and Manager

WordPress plugin WP Cron Viewer and Manager scored 57% from 54 tests.

About plugin

  • Plugin page: wp-cron-viewer-an...
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Oct 10, 2017
  • Latest release: Dec 4, 2017
  • Number of updates: 10
  • Update frequency: every 5.7 days
  • Top authors: klickonit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 959 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.84MB] [CPU: ▼31.02ms] Passed 4 tests

A check of server-side resources used by WP Cron Viewer and Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.97 ▼3.39
Dashboard /wp-admin3.10 ▼0.2023.93 ▼18.19
Posts /wp-admin/edit.php3.10 ▼0.2523.43 ▼23.48
Add New Post /wp-admin/post-new.php3.10 ▼2.7825.51 ▼73.37
Media Library /wp-admin/upload.php3.10 ▼0.1323.07 ▼9.04
WP Cron Viewer and Manager /wp-admin/options-general.php?page=klick_cvm3.1025.72

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Cron Viewer and Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.30 ▼1.071.70 ▼0.2744.20 ▼7.30
Dashboard /wp-admin2,219 ▲285.88 ▼0.0298.11 ▼1.7142.28 ▲0.56
Posts /wp-admin/edit.php2,102 ▲132.02 ▼0.0436.06 ▼4.9232.70 ▼4.05
Add New Post /wp-admin/post-new.php1,533 ▲523.24 ▲4.78682.35 ▲61.7054.22 ▲2.34
Media Library /wp-admin/upload.php1,401 ▲134.20 ▲0.0196.45 ▼6.3942.75 ▼5.12
WP Cron Viewer and Manager /wp-admin/options-general.php?page=klick_cvm1,5082.0323.2229.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=klick_cvm
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% 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
  • 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-cron-viewer-and-manager/wp-cron-viewer-and-manager.php
    • > /wp-content/plugins/wp-cron-viewer-and-manager/notices/xxxxx-klick-cvm-rate-us.php
    • > /wp-content/plugins/wp-cron-viewer-and-manager/templates/klick-cvm-tab-change-log.php
    • > /wp-content/plugins/wp-cron-viewer-and-manager/notices/xxxxx-klick-cvm-no-config.php
    • > /wp-content/plugins/wp-cron-viewer-and-manager/includes/class-klick-cvm-abstract-notice.php
    • > /wp-content/plugins/wp-cron-viewer-and-manager/includes/class-klick-cvm-commands.php
    • > /wp-content/plugins/wp-cron-viewer-and-manager/templates/klick-cvm-tabs-header.php
    • > /wp-content/plugins/wp-cron-viewer-and-manager/includes/class-klick-cvm-notifier.php
    • > /wp-content/plugins/wp-cron-viewer-and-manager/includes/class-klick-cvm-logger.php
    • > /wp-content/plugins/wp-cron-viewer-and-manager/includes/class-klick-cvm-abstract-logger.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _get_cron_array() in wp-content/plugins/wp-cron-viewer-and-manager/templates/klick-cvm-tab-information.php:14
    • > PHP Warning
      Use of undefined constant KLICK_CVM_PLUGIN_URL - assumed 'KLICK_CVM_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-cron-viewer-and-manager/templates/klick-cvm-tab-our-other-plugins.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-cron-viewer-and-manager/templates/klick-cvm-tab-our-other-plugins.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=klick_cvm
    • > Network (severe)
    wp-content/plugins/wp-cron-viewer-and-manager//images/our-more-plugins/APV.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=klick_cvm
    • > Network (severe)
    wp-content/plugins/wp-cron-viewer-and-manager//images/our-more-plugins/ATS.svg - Failed to load resource: the server responded with a status of 404 (Not 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
3 plugin tags: activity tracker, logger, user

wp-cron-viewer-and-manager/wp-cron-viewer-and-manager.php 92% from 13 tests

Analyzing the main PHP file in "WP Cron Viewer and Manager" version 0.0.3
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,612 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP18274434783
SVG11011521
CSS4137202
JavaScript2123847
Markdown123042
PO File12317

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.73
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes00.00%
Methods63
▷ Static methods57.94%
▷ Public methods6298.41%
▷ Protected methods00.00%
▷ Private methods11.59%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.25MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/notices/cvm_notice_icon.png20.74KB1.79KB▼ 91.39%
images/notices/cvm_notice_icon3.png30.17KB6.04KB▼ 79.98%
images/klick-on-it.png6.51KB4.02KB▼ 38.23%
images/small_icon.png18.12KB0.45KB▼ 97.52%
images/cvm-banner.png83.97KB31.62KB▼ 62.35%