10% qsandbox

Code Review | qSandbox

WordPress plugin qSandbox scored10%from 54 tests.

About plugin

  • Plugin page: qsandbox
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Jan 7, 2016
  • Latest release: Feb 13, 2016
  • Number of updates: 5
  • Update frequency: every 9.4 days
  • Top authors: lordspace (60%)qsandbox (60%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /703 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.389.96 ▼30.58
Dashboard /wp-admin2.10 ▼1.205.81 ▼48.13
Posts /wp-admin/edit.php2.10 ▼1.265.99 ▼43.98
Add New Post /wp-admin/post-new.php2.10 ▼3.796.87 ▼90.42
Media Library /wp-admin/upload.php2.10 ▼1.136.43 ▼38.60
qSandbox /wp-admin/options-general.php?page=qsandbox_settings2.106.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.86 ▼0.519.93 ▲8.3137.48 ▼8.33
Dashboard /wp-admin2,201 ▲245.64 ▲0.0692.72 ▲1.1841.59 ▼0.77
Posts /wp-admin/edit.php2,109 ▲121.97 ▼0.0744.33 ▲3.7538.11 ▲1.98
Add New Post /wp-admin/post-new.php1,531 ▼022.89 ▲0.10689.27 ▲19.2167.00 ▲2.71
Media Library /wp-admin/upload.php1,406 ▲34.20 ▲0.0498.64 ▲1.5042.21 ▲0.46
qSandbox /wp-admin/options-general.php?page=qsandbox_settings1,91610.86378.4174.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP8177152701
JavaScript16732

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 code0.21
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods33
▷ Static methods412.12%
▷ Public methods3193.94%
▷ Protected methods00.00%
▷ Private methods26.06%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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