Benchmarks
Plugin footprint 40% 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
- Install procedure had errors
- > Deprecated in wp-content/plugins/qsandbox/lib/widgets.php+3
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼55.28ms] Passed 4 tests
A check of server-side resources used by qSandbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 9.96 ▼30.58 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.81 ▼48.13 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.99 ▼43.98 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.87 ▼90.42 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.43 ▼38.60 |
qSandbox /wp-admin/options-general.php?page=qsandbox_settings | 2.10 | 6.81 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_qsandbox |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for qSandbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.86 ▼0.51 | 9.93 ▲8.31 | 37.48 ▼8.33 |
Dashboard /wp-admin | 2,201 ▲24 | 5.64 ▲0.06 | 92.72 ▲1.18 | 41.59 ▼0.77 |
Posts /wp-admin/edit.php | 2,109 ▲12 | 1.97 ▼0.07 | 44.33 ▲3.75 | 38.11 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 22.89 ▲0.10 | 689.27 ▲19.21 | 67.00 ▲2.71 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.20 ▲0.04 | 98.64 ▲1.50 | 42.21 ▲0.46 |
qSandbox /wp-admin/options-general.php?page=qsandbox_settings | 1,916 | 10.86 | 378.41 | 74.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/qsandbox/lib/widgets.php+3
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_qsandbox
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=qsandbox_settings
- > Deprecated in wp-content/plugins/qsandbox/lib/widgets.php+3
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=qsandbox_settings
- > Notice in wp-content/plugins/qsandbox/lib/admin.php+344
Undefined index: PluginName
- > GET request to /wp-admin/options-general.php?page=qsandbox_settings
- > Notice in wp-content/plugins/qsandbox/lib/admin.php+455
Undefined index: Version
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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qsandbox/lib/bootstrap.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qsandbox/lib/bootstrap.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qsandbox/lib/admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qsandbox/lib/widgets.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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 to be fixed:
- Screenshots: Screenshot #1 (n/a) image required
qsandbox/qsandbox.php Passed 13 tests
The main file in "qSandbox" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Facilitates the communication with qSandbox and some cool stuff.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin733 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 177 | 152 | 701 |
JavaScript | 1 | 6 | 7 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 31 | 93.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.06% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected