Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.94MB] [CPU: ▼53.54ms] Passed 4 tests
Analyzing server-side resources used by LoadGo for WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.69 ▼36.20 |
Dashboard /wp-admin | 2.07 ▼1.27 | 5.23 ▼54.78 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.42 ▼38.25 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 5.69 ▼84.93 |
Media Library /wp-admin/upload.php | 2.07 ▼1.15 | 6.27 ▼28.84 |
Loadgo /wp-admin/options-general.php?page=loadgo-for-wp/loadgo-options.php | 2.08 | 5.38 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
loadgo_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
LoadGo for WP: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲113 | 13.57 ▼0.81 | 9.41 ▲7.34 | 47.82 ▲2.96 |
Dashboard /wp-admin | 2,224 ▲35 | 5.94 ▲0.99 | 106.53 ▲0.33 | 37.80 ▼1.86 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.31 ▲0.29 | 40.43 ▲5.68 | 34.48 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,529 ▲10 | 23.14 ▼0.06 | 648.54 ▼1.10 | 35.88 ▼16.52 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.41 ▲0.19 | 99.01 ▲4.43 | 44.04 ▲3.34 |
Loadgo /wp-admin/options-general.php?page=loadgo-for-wp/loadgo-options.php | 1,297 | 2.24 | 48.23 | 34.57 |
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
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- loadgo_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=loadgo-for-wp/loadgo-options.php
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: logo, pace, loading animation, loadgo, loading
loadgo-for-wp/loadgo.php 85% from 13 tests
The main file in "LoadGo for WP" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 185 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("loadgo-for-wp.php" instead of "loadgo.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
No dangerous file extensions were detected2,567 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 288 | 148 | 1,628 |
PHP | 3 | 84 | 74 | 446 |
Markdown | 2 | 135 | 0 | 317 |
PO File | 1 | 40 | 50 | 122 |
JSON | 1 | 0 | 0 | 34 |
CSS | 2 | 7 | 0 | 20 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 2 | 28.57% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/example.png | 14.40KB | 5.48KB | ▼ 61.94% |