62% yellow-schedule

Code Review | Yellow Schedule

WordPress plugin Yellow Schedule scored62%from 54 tests.

About plugin

  • Plugin page: yellow-schedule
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2015
  • Latest release: Mar 31, 2015
  • Number of updates: 14
  • Update frequency: every 1.4 days
  • Top authors: yellowschedule (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,066 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: ▼1.82MB] [CPU: ▼56.44ms] Passed 4 tests

This is a short check of server-side resources used by Yellow Schedule
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.294.90 ▼43.28
Dashboard /wp-admin2.19 ▼1.116.86 ▼41.29
Posts /wp-admin/edit.php2.19 ▼1.165.91 ▼49.26
Add New Post /wp-admin/post-new.php2.19 ▼3.696.16 ▼91.91
Media Library /wp-admin/upload.php2.19 ▼1.046.58 ▼30.69
Yellow Schedule /wp-admin/options-general.php?page=yellow_schedule_settings2.197.83

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
yellow_schedule_version
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Yellow Schedule
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15913.74 ▼0.648.81 ▲6.9743.15 ▼3.04
Dashboard /wp-admin2,230 ▲304.85 ▼0.08102.26 ▼10.3539.87 ▼7.06
Posts /wp-admin/edit.php2,114 ▲112.05 ▼0.0138.87 ▼6.2636.06 ▼2.26
Add New Post /wp-admin/post-new.php1,533 ▲223.33 ▲0.10637.51 ▼48.7154.15 ▼8.68
Media Library /wp-admin/upload.php1,414 ▲114.23 ▲0.10108.10 ▲2.2043.79 ▼1.88
Yellow Schedule /wp-admin/options-general.php?page=yellow_schedule_settings1,1923.7862.7639.85

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
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • yellow_schedule_version
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% 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 errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=yellow_schedule_settings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=yellow_schedule_settings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=yellow_schedule_settings
    • > Notice in wp-content/plugins/yellow-schedule/includes/lib/class-yellow-schedule-admin-api.php+90
    Undefined index: placeholder

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/yellow-schedule/includes/class-yellow-schedule-settings.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=yellow_schedule_settings
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=yellow_schedule_settings 0:0 Uncaught SyntaxError: "undefined" is not valid JSON

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #6 (You can also take payments from your clients with our secure client payments system.), #7 (If you are using the Yellow Schedule mobile app (available for Android, iOS and Windows Phone) you can receive appointment updates directly along with email and sms updates.)
You can take inspiration from this readme.txt

yellow-schedule/yellow-schedule.php Passed 13 tests

The primary PHP file in "Yellow Schedule" version 1.1 is used by WordPress to initiate all plugin functionality
37 characters long description:
A Yellow Schedule appointment plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected856 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP8217408734
JavaScript418996
CSS10026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity22.20
▷ Minimum class complexity5.00
▷ Maximum class complexity61.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3794.87%
▷ Protected methods00.00%
▷ Private methods25.13%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/ys-logo2.png3.45KB2.89KB▼ 16.20%