Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: lesson scheduler. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
Server metrics [RAM: ▼1.66MB] [CPU: ▼54.71ms] Passed 4 tests
An overview of server-side resources used by Lesson Scheduler
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.14 | 6.06 ▼33.54 |
Dashboard /wp-admin | 2.34 ▼0.96 | 7.54 ▼45.15 |
Posts /wp-admin/edit.php | 2.35 ▼1.01 | 10.45 ▼46.40 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.54 | 7.44 ▼93.74 |
Media Library /wp-admin/upload.php | 2.34 ▼0.88 | 7.12 ▼29.92 |
lesson schedules /wp-admin/edit.php?post_type=lesson_schedules | 2.35 | 7.10 |
Lesson Scheduler /wp-admin/options-general.php?page=lesson-scheduler/lesson_scheduler_options.php | 2.35 | 6.73 |
Add New /wp-admin/post-new.php?post_type=lesson_schedules | 2.35 | 7.44 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Lesson Scheduler: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.93 ▼0.66 | 3.24 ▲1.64 | 43.10 ▼3.72 |
Dashboard /wp-admin | 2,238 ▲61 | 5.69 ▲0.05 | 94.17 ▲5.24 | 40.08 ▼6.52 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.66 ▲0.62 | 45.37 ▲4.36 | 37.03 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,569 ▲41 | 18.21 ▼4.91 | 674.10 ▼2.88 | 80.77 ▲23.59 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 5.21 ▲0.95 | 102.93 ▲7.87 | 42.80 ▲2.68 |
lesson schedules /wp-admin/edit.php?post_type=lesson_schedules | 1,116 | 2.61 | 39.13 | 27.33 |
Lesson Scheduler /wp-admin/options-general.php?page=lesson-scheduler/lesson_scheduler_options.php | 1,624 | 2.31 | 31.32 | 42.82 |
Add New /wp-admin/post-new.php?post_type=lesson_schedules | 1,503 | 3.55 | 53.07 | 31.42 |
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
These items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: lesson scheduler. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lesson_schedules
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: lesson scheduler. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lesson_schedules
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lesson-scheduler/lesson_scheduler_options.php
- > Warning in wp-content/plugins/lesson-scheduler/lesson_scheduler_options.php+185
Use of undefined constant wp_get_user_contact_methods - assumed 'wp_get_user_contact_methods' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lesson-scheduler/lesson_scheduler_options.php
- > Warning in wp-content/plugins/lesson-scheduler/lesson_scheduler_options.php+145
Use of undefined constant get_cimyFields - assumed 'get_cimyFields' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=lesson-scheduler/lesson_scheduler_options.php
- > Notice in wp-content/plugins/lesson-scheduler/lesson_scheduler_options.php+86
Undefined variable: str
- > GET request to /wp-admin/post-new.php?post_type=lesson_schedules
- > Notice in wp-content/plugins/lesson-scheduler/lesson_scheduler.php+159
Undefined index: lesson_schedule_meta_nonce
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lesson-scheduler/lesson_scheduler_options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lesson-scheduler/lesson_scheduler_options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lesson-scheduler/lesson_scheduler_mobile.php:175
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/lesson-scheduler/template-lessonscheduler.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Setting Lesson Place.), #2 (Setting Lesson Time.), #3 (Setting oprion, display column and sort type.), #4 (Add new post Lesson Schedule.), #5 (Setting shortcode for a page.), #6 (Setting template for a page.), #7 (A page sample for TwentySixteen by short code.), #8 (A page sample for TwentySixteen by template.)
- Tested up to: Version not formatted correctly
lesson-scheduler/lesson_scheduler.php 92% from 13 tests
The primary PHP file in "Lesson Scheduler" version 1.2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lesson-scheduler.php" instead of "lesson_scheduler.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,337 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 301 | 245 | 1,153 |
PO File | 1 | 26 | 4 | 65 |
CSS | 1 | 8 | 6 | 61 |
JavaScript | 2 | 7 | 0 | 58 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 1.35MB with 0.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 209.58KB | 70.42KB | ▼ 66.40% |
screenshot-6.png | 224.69KB | 77.13KB | ▼ 65.67% |
screenshot-1.png | 113.79KB | 38.45KB | ▼ 66.21% |
screenshot-7.png | 293.01KB | 102.64KB | ▼ 64.97% |
screenshot-2.png | 23.35KB | 9.00KB | ▼ 61.46% |