94% schedules

Code Review | Schedules

WordPress plugin Schedules scored 94% from 54 tests.

About plugin

  • Plugin page: schedules
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 5.8.1
  • First release: Jun 14, 2021
  • Latest release: Aug 20, 2021
  • Number of updates: 3
  • Update frequency: every 22.3 days
  • Top authors: bradparbs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 313 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Schedules
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0135.54 ▲1.96
Dashboard /wp-admin3.07 ▲0.0246.41 ▲8.82
Posts /wp-admin/edit.php3.12 ▲0.0243.29 ▼1.35
Add New Post /wp-admin/post-new.php5.43 ▼0.0088.60 ▼564.97
Media Library /wp-admin/upload.php3.01 ▲0.0131.38 ▲2.24

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Schedules
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,779 ▲18315.92 ▲0.3610.09 ▲0.7548.64 ▲0.51
Dashboard /wp-admin3,045 ▲1086.06 ▼0.11137.00 ▲0.22122.93 ▲8.94
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0267.06 ▲3.6296.38 ▲1.72
Add New Post /wp-admin/post-new.php1,498 ▼18518.92 ▲0.59377.70 ▲23.22109.43 ▲0.21
Media Library /wp-admin/upload.php1,810 ▲35.05 ▲0.02156.19 ▲6.96115.12 ▼1.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Schedules\\add_action() in wp-content/plugins/schedules/schedules.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: posts, schedule, scheduled, calendar, dashboard...

schedules/schedules.php 92% from 13 tests

"Schedules" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/lang/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected64 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1163264

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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
Namespaces1
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin