Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/riotschedule/riotschedule.php+2478
Uncaught Error: Call to undefined function mysql_get_server_info() in wp-content/plugins/riotschedule/riotschedule.php:2478
Stack trace:
#0 wp-includes/class-wp-hook.php(310): rs_install()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.18ms] Passed 4 tests
This is a short check of server-side resources used by RiotSchedule
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.84 ▼3.54 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.81 ▼23.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.70 ▼0.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.80 ▼9.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 46.38 ▲11.81 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
RiotSchedule: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.36 ▼0.02 | 2.27 ▲0.53 | 42.00 ▼1.96 |
Dashboard /wp-admin | 2,195 ▲18 | 5.67 ▲0.11 | 83.09 ▼24.83 | 41.11 ▼12.63 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 36.26 ▼0.97 | 32.75 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,545 ▲13 | 23.30 ▲0.02 | 671.04 ▼10.51 | 56.29 ▲0.50 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▼0.03 | 108.76 ▼9.74 | 46.27 ▼8.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/riotschedule/riotschedule.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Donate link: Invalid URI found ("http;//www.mattyribbo.co.uk/projects/riotschedule")
riotschedule/riotschedule.php 92% from 13 tests
The principal PHP file in "RiotSchedule" v. 1.1b2... is loaded by WordPress automatically on each request
It is important to fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.1b2...")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,166 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 413 | 143 | 2,029 |
CSS | 2 | 2 | 0 | 136 |
JavaScript | 1 | 0 | 12 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 144)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 85.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 25.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 144.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/calendar.png | 0.66KB | 0.73KB | 0.00% |
icons/delete.png | 0.70KB | 0.72KB | 0.00% |