Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.46ms] Passed 4 tests
Server-side resources used by SandCage
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.73 ▼1.32 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.51 ▼0.65 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.82 ▲2.92 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.79 ▲4.87 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 40.80 ▲6.94 |
Media Library /wp-admin/admin.php?page=sandcage/my_assets.php | 3.24 | 31.81 |
Settings /wp-admin/admin.php?page=SandCage | 3.22 | 36.30 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for SandCage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲55 | 13.39 ▼1.01 | 1.71 ▲0.06 | 43.28 ▼1.25 |
Dashboard /wp-admin | 2,228 ▲22 | 5.11 ▼0.65 | 101.83 ▲3.00 | 79.80 ▲39.12 |
Posts /wp-admin/edit.php | 2,111 ▲25 | 2.03 ▲0.01 | 39.50 ▲5.52 | 36.09 ▲4.13 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 23.23 ▲0.16 | 732.99 ▲33.83 | 54.73 ▼15.48 |
Media Library /wp-admin/upload.php | 1,448 ▲57 | 4.19 ▼0.01 | 98.12 ▼3.61 | 71.41 ▲23.82 |
Media Library /wp-admin/admin.php?page=sandcage/my_assets.php | 780 | 2.09 | 25.97 | 21.93 |
Settings /wp-admin/admin.php?page=SandCage | 858 | 1.69 | 27.62 | 30.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sandcage/sandcage.php:102
- > PHP Notice
Undefined variable: wpSandCage in wp-content/plugins/sandcage/my_assets.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function get_sandcage_my_assets_iframe() on null in wp-content/plugins/sandcage/my_assets.php:1
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
sandcage/sandcage.php Passed 13 tests
"SandCage" version 0.1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
129 characters long description:
SandCage Plugin to integrate with your SandCage account. Manage your Files and Speed up your Website. Process, Store and Deliver.
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
There were no executable files found in this plugin1,147 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 104 | 277 | 840 |
JavaScript | 1 | 22 | 0 | 238 |
CSS | 1 | 2 | 0 | 69 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 82.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 7.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo60x40.png | 2.27KB | 2.26KB | 0.30% |
images/help.png | 0.87KB | 0.77KB | ▼ 11.10% |
images/logo60.png | 2.56KB | 2.55KB | 0.23% |
images/favico_16.png | 0.56KB | 0.74KB | 0.00% |
images/logo.png | 3.06KB | 3.04KB | ▼ 0.64% |