68% schedule

Code Review | Schedule

WordPress plugin Schedule scored68%from 54 tests.

About plugin

  • Plugin page: schedule
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.5-5.8
  • WordPress version: 6.3.1
  • First release: Jul 11, 2019
  • Latest release: Aug 4, 2021
  • Number of updates: 19
  • Update frequency: every 40.7 days
  • Top authors: scheduler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,256 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼33.71ms] Passed 4 tests

Analyzing server-side resources used by Schedule
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.65 ▲0.08
Dashboard /wp-admin3.04 ▼0.3025.89 ▼31.58
Posts /wp-admin/edit.php3.05 ▼0.3122.93 ▼21.63
Add New Post /wp-admin/post-new.php3.04 ▼2.8425.60 ▼69.50
Media Library /wp-admin/upload.php3.05 ▼0.1823.35 ▼12.13

Server storage [IO: ▲0.24MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Schedule
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲7913.39 ▼0.981.81 ▼0.0739.47 ▼0.91
Dashboard /wp-admin2,231 ▲404.86 ▼0.06109.57 ▲1.5043.76 ▲0.22
Posts /wp-admin/edit.php2,120 ▲312.00 ▲0.0039.78 ▲4.8140.09 ▲3.53
Add New Post /wp-admin/post-new.php1,410 ▼10422.73 ▲4.96505.87 ▼146.9963.46 ▲7.45
Media Library /wp-admin/upload.php1,413 ▲224.20 ▲0.03100.83 ▲1.2046.55 ▲0.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_schedule
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/schedule/read_note.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 for query DELETE FROM wp_schedule WHERE id=
    • > PHP Fatal error
      require_once(): Failed opening required '../../../wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/schedule/trunk/read_note.php on line 3
    • > PHP Warning
      require_once(../../../wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/schedule/trunk/read_note.php on line 3
    • > PHP Fatal error
      Uncaught Exception: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character in wp-content/plugins/schedule/save_note.php:33
    • > PHP Fatal error
      require_once(): Failed opening required '../../../wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/schedule/trunk/delete_note.php on line 2
    • > WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 for query SELECT * FROM wp_schedule WHERE id=
    • > PHP Warning
      require_once(../../../wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/schedule/trunk/delete_note.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required '../../../wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/schedule/trunk/save_note.php on line 3
    • > PHP Warning
      require_once(../../../wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/schedule/trunk/save_note.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: schedule, event, calendar, alarm, agenda...

schedule/schedule.php Passed 13 tests

The main PHP file in "Schedule" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Manage your calendar appointments and time schedule.

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 plugin2,621 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12102991,782
PHP618063813
CSS13126

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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
Namespaces0
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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected