Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.95MB] [CPU: ▲8.69ms] Passed 4 tests
This is a short check of server-side resources used by Backstage - Customizer Demo Access
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 46.84 ▲6.85 |
Dashboard /wp-admin | 4.38 ▲1.08 | 54.83 ▲4.07 |
Posts /wp-admin/edit.php | 4.41 ▲1.05 | 58.62 ▲14.48 |
Add New Post /wp-admin/post-new.php | 6.91 ▲1.02 | 103.84 ▲12.30 |
Media Library /wp-admin/upload.php | 4.24 ▲1.02 | 43.81 ▲11.53 |
Backstage /wp-admin/themes.php?page=backstage_options | 4.73 | 42.57 |
Server storage [IO: ▲3.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 418 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
backstage_options |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
backstageversion |
widget_recent-posts |
Browser metrics Passed 4 tests
Backstage - Customizer Demo Access: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲58 | 13.64 ▼0.62 | 1.76 ▼0.35 | 40.13 ▼8.34 |
Dashboard /wp-admin | 2,221 ▲36 | 4.91 ▲0.03 | 112.18 ▼4.65 | 39.02 ▼8.85 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.05 ▲0.05 | 41.72 ▲1.33 | 37.04 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 23.25 ▲4.88 | 675.44 ▲69.94 | 62.47 ▲2.27 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.28 ▼0.01 | 101.12 ▲0.36 | 44.31 ▼1.24 |
Backstage /wp-admin/themes.php?page=backstage_options | 1,596 | 5.88 | 143.11 | 62.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- backstageversion
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/backstage/includes/vendor/CMB2/apigen/hook-docs.php
- 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backstage/includes/vendor/CMB2/init.php:126
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/backstage/includes/vendor/CMB2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/backstage/includes/vendor/CMB2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/backstage/includes/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/backstage/includes/vendor/CMB2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/backstage/includes/vendor/CMB2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/backstage/includes/vendor/CMB2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/backstage/includes/vendor/CMB2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/backstage/includes/vendor/CMB2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/backstage/includes/vendor/CMB2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
9 plugin tags: customizer, guest access, theme shop, theme preview, theme options...
backstage/backstage.php Passed 13 tests
The main PHP script in "Backstage - Customizer Demo Access" version 1.4.2 is automatically included on every request by WordPress
35 characters long description:
Customizer Demo Access for Everyone
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin54,159 lines of code in 241 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 70 | 2,626 | 7,342 | 8,941 |
CSS | 14 | 1,182 | 1,152 | 4,699 |
JSON | 1 | 0 | 0 | 3,483 |
JavaScript | 16 | 520 | 670 | 2,648 |
Sass | 16 | 300 | 25 | 1,379 |
Markdown | 3 | 225 | 0 | 665 |
YAML | 1 | 6 | 0 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 19.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 10 | 12.99% |
▷ Concrete classes | 67 | 87.01% |
▷ Final classes | 1 | 1.49% |
Methods | 636 | |
▷ Static methods | 122 | 19.18% |
▷ Public methods | 528 | 83.02% |
▷ Protected methods | 102 | 16.04% |
▷ Private methods | 6 | 0.94% |
Functions | 60 | |
▷ Named functions | 60 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 6 | 42.86% |
▷ Class constants | 8 | 57.14% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/CMB2/apigen/theme-bootstrap/src/resources/tree-cleaner.png | 0.12KB | 0.08KB | ▼ 33.33% |
includes/vendor/CMB2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/vendor/CMB2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
includes/vendor/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/vendor/CMB2/apigen/theme-bootstrap/src/resources/resize.png | 0.12KB | 0.10KB | ▼ 13.22% |