Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.97ms] Passed 4 tests
This is a short check of server-side resources used by BKTSK Live Scheduler
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.58 ▼0.51 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.06 ▼2.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.84 ▼3.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.53 ▼9.33 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.22 ▲0.70 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for BKTSK Live Scheduler
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.74 ▲0.35 | 1.78 ▼0.22 | 45.31 ▼4.23 |
Dashboard /wp-admin | 2,206 ▲21 | 5.90 ▲0.03 | 103.74 ▼16.14 | 42.86 ▼1.95 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.13 ▲0.13 | 40.93 ▲2.90 | 38.73 ▲8.75 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.48 ▲0.88 | 620.46 ▼67.27 | 70.89 ▲18.06 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.26 ▼0.06 | 95.54 ▼8.43 | 40.94 ▼2.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bktsk-live-scheduler/lib/class-bktskytscheduleradminpage.php:399
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bktsk-live-scheduler/bktsk-yt-live-scheduler.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bktsk-live-scheduler/lib/add-taxonomy.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bktsk-live-scheduler/lib/add-post-type.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bktsk-live-scheduler/lib/class-bktskytschedulershortcode.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bktsk-live-scheduler/lib/make-ics.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: schedule, live, youtube, calendar
bktsk-live-scheduler/bktsk-yt-live-scheduler.php 92% from 13 tests
The main PHP script in "BKTSK Live Scheduler" version 0.4.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("bktsk-live-scheduler.php" instead of "bktsk-yt-live-scheduler.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin6,536 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 4,875 |
PHP | 7 | 254 | 160 | 1,302 |
PO File | 1 | 79 | 83 | 214 |
Sass | 1 | 17 | 0 | 84 |
JavaScript | 5 | 12 | 17 | 56 |
CSS | 5 | 4 | 12 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 65.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 34.29% |
Functions | 19 | |
▷ Named functions | 19 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
style/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
style/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
style/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
style/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |