83% scheduled-jobs-dashboard-widget

Code Review | Scheduled Jobs Dashboad Widget

WordPress plugin Scheduled Jobs Dashboad Widget scored83%from 54 tests.

About plugin

  • Plugin page: scheduled-jobs-da...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 9, 2012
  • Latest release: Sep 17, 2014
  • Number of updates: 26
  • Update frequency: every 26.0 days
  • Top authors: f.staude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,786 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼6.91ms] Passed 4 tests

A check of server-side resources used by Scheduled Jobs Dashboad Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.34 ▼7.11
Dashboard /wp-admin3.31 ▲0.0149.68 ▲2.23
Posts /wp-admin/edit.php3.36 ▲0.0050.14 ▼3.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.74 ▼16.98
Media Library /wp-admin/upload.php3.23 ▲0.0036.17 ▲0.10

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Scheduled Jobs Dashboad Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,007 ▲24614.81 ▲0.441.68 ▲0.0834.57 ▼22.48
Dashboard /wp-admin2,413 ▲2075.85 ▲0.99100.93 ▼3.6546.24 ▲1.73
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.1536.36 ▼4.5636.60 ▼0.77
Add New Post /wp-admin/post-new.php1,550 ▲1723.30 ▼0.07661.12 ▲7.3853.16 ▼4.01
Media Library /wp-admin/upload.php1,397 ▼04.25 ▲0.0794.84 ▼5.3744.92 ▲0.20

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

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-jobs-dashboard-widget/class-scheduled-jobs-dashboard-widget.php:24

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Dashboard Widget), #2 (Entry in the "At A Glance" Widget)
You can take inspiration from this readme.txt

scheduled-jobs-dashboard-widget/scheduled-jobs-dashboard-widget.php 85% from 13 tests

The main PHP file in "Scheduled Jobs Dashboad Widget" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

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
There were no executable files found in this plugin164 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File2266092
PHP2214671
CSS1301

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ 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 methods480.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.11MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png19.10KB5.58KB▼ 70.77%
screenshot-1.png97.35KB11.28KB▼ 88.41%