Benchmarks
Plugin footprint 65% 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.03MB] [CPU: ▼8.46ms] Passed 4 tests
An overview of server-side resources used by Sphere Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 37.86 ▼6.40 |
Dashboard /wp-admin | 3.33 ▼0.01 | 60.28 ▼9.12 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 54.82 ▲5.95 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.69 ▼20.39 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.28 ▲2.07 |
Server storage [IO: ▲5.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 40 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_mwsim_deo |
wp_mwsim_scene |
New WordPress options |
---|
widget_recent-posts |
mwsim_scene_db_version |
db_upgraded |
mwsim_deo_db_version |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Sphere Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 13.23 ▼1.06 | 1.64 ▼0.12 | 45.96 ▼2.98 |
Dashboard /wp-admin | 2,240 ▲43 | 4.86 ▼0.02 | 104.72 ▼4.99 | 38.94 ▲0.08 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.03 ▲0.04 | 39.96 ▲2.36 | 38.13 ▲5.18 |
Add New Post /wp-admin/post-new.php | 1,570 ▲36 | 18.12 ▼5.07 | 608.14 ▼110.16 | 51.01 ▼9.23 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.25 ▲0.00 | 119.16 ▲16.46 | 48.26 ▲5.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_mwsim_deo
- wp_mwsim_scene
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- mwsim_scene_db_version
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- mwsim_deo_db_version
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: Screenshot #1 (controller image) image missing
sphere-manager/plugin.php 85% from 13 tests
The main PHP file in "Sphere Manager" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sphere-manager.php" instead of "plugin.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 244 characters long)
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
Everything looks great! No dangerous files found in this plugin4,449 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 393 | 260 | 2,424 |
PHP | 5 | 166 | 33 | 1,429 |
SVG | 1 | 0 | 0 | 288 |
CSS | 5 | 8 | 24 | 201 |
PO File | 1 | 52 | 64 | 107 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 9 | 25.71% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
7 compressed PNG files occupy 0.93MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/bootstrap-colorpicker/alpha-horizontal.png | 0.54KB | 1.62KB | 0.00% |
img/bootstrap-colorpicker/hue.png | 0.49KB | 0.50KB | 0.00% |
img/bootstrap-colorpicker/hue-horizontal.png | 0.47KB | 0.47KB | 0.00% |
screenshot-1.png | 220.38KB | 72.02KB | ▼ 67.32% |
img/bootstrap-colorpicker/saturation.png | 4.05KB | 5.13KB | 0.00% |