Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Compile error in wp-content/plugins/schooltube-shortcode/schooltube-shortcode.php+36
'break' not in the 'loop' or 'switch' context
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.06ms] Passed 4 tests
Analyzing server-side resources used by SchoolTube Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.80 ▼0.92 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.47 ▼0.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.98 ▼1.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.68 ▼16.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.00 ▲2.40 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
SchoolTube Shortcode: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼1.34 | 2.08 ▲0.35 | 39.03 ▼9.72 |
Dashboard /wp-admin | 2,206 ▲15 | 5.77 ▼0.09 | 97.55 ▼7.83 | 42.03 ▲0.91 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.01 | 37.36 ▼6.46 | 36.24 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.24 ▼0.10 | 642.31 ▼20.41 | 51.04 ▼21.39 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.04 | 98.68 ▼10.48 | 39.99 ▼5.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 errors when accessed directly with GET requests:
- > PHP Fatal error
'break' not in the 'loop' or 'switch' context in wp-content/plugins/schooltube-shortcode/schooltube-shortcode.php on line 36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== schooltube-shortcode ===
)
schooltube-shortcode/schooltube-shortcode.php 85% from 13 tests
Analyzing the main PHP file in "SchoolTube Shortcode" version 0.1 ALPHA...
Please take the time to fix the following:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "0.1 ALPHA...")
- Description: The description should be shorter than 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin20 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 25 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 1 | |
▷ Named functions | 1 | 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
There are no PNG files in this plugin