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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 4.90 ▼43.28 |
Dashboard /wp-admin | 2.19 ▼1.11 | 6.86 ▼41.29 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 5.91 ▼49.26 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 6.16 ▼91.91 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.58 ▼30.69 |
Yellow Schedule /wp-admin/options-general.php?page=yellow_schedule_settings | 2.19 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.74 ▼0.64 | 8.81 ▲6.97 | 43.15 ▼3.04 |
Dashboard /wp-admin | 2,230 ▲30 | 4.85 ▼0.08 | 102.26 ▼10.35 | 39.87 ▼7.06 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.05 ▼0.01 | 38.87 ▼6.26 | 36.06 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 23.33 ▲0.10 | 637.51 ▼48.71 | 54.15 ▼8.68 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.23 ▲0.10 | 108.10 ▲2.20 | 43.79 ▼1.88 |
Yellow Schedule /wp-admin/options-general.php?page=yellow_schedule_settings | 1,192 | 3.78 | 62.76 | 39.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
- > PHP Fatal error
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 217 | 408 | 734 |
JavaScript | 4 | 18 | 9 | 96 |
CSS | 1 | 0 | 0 | 26 |
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 code | 0.37 |
Average class complexity | 22.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 37 | 94.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.13% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/ys-logo2.png | 3.45KB | 2.89KB | ▼ 16.20% |