79% backstage

Code Review | Backstage - Customizer Demo Access

WordPress plugin Backstage - Customizer Demo Access scored 79% from 54 tests.

About plugin

  • Plugin page: backstage
  • Plugin version: 1.4.2
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.3.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: Nov 8, 2019
  • Number of updates: 22
  • Update frequency: every 18.5 days
  • Top authors: pixelgrade (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 2,133 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6946.84 ▲6.85
Dashboard /wp-admin4.38 ▲1.0854.83 ▲4.07
Posts /wp-admin/edit.php4.41 ▲1.0558.62 ▲14.48
Add New Post /wp-admin/post-new.php6.91 ▲1.02103.84 ▲12.30
Media Library /wp-admin/upload.php4.24 ▲1.0243.81 ▲11.53
Backstage /wp-admin/themes.php?page=backstage_options4.7342.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5813.64 ▼0.621.76 ▼0.3540.13 ▼8.34
Dashboard /wp-admin2,221 ▲364.91 ▲0.03112.18 ▼4.6539.02 ▼8.85
Posts /wp-admin/edit.php2,107 ▲182.05 ▲0.0541.72 ▲1.3337.04 ▲0.08
Add New Post /wp-admin/post-new.php1,526 ▼1923.25 ▲4.88675.44 ▲69.9462.47 ▲2.27
Media Library /wp-admin/upload.php1,400 ▲94.28 ▼0.01101.12 ▲0.3644.31 ▼1.24
Backstage /wp-admin/themes.php?page=backstage_options1,5965.88143.1162.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

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:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP702,6267,3428,941
CSS141,1821,1524,699
JSON1003,483
JavaScript165206702,648
Sass16300251,379
Markdown32250665
YAML16021

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 code0.48
Average class complexity19.12
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes77
▷ Abstract classes1012.99%
▷ Concrete classes6787.01%
▷ Final classes11.49%
Methods636
▷ Static methods12219.18%
▷ Public methods52883.02%
▷ Protected methods10216.04%
▷ Private methods60.94%
Functions60
▷ Named functions60100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants642.86%
▷ Class constants857.14%
▷ Public constants8100.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
FileSize - originalSize - compressedSavings
includes/vendor/CMB2/apigen/theme-bootstrap/src/resources/tree-cleaner.png0.12KB0.08KB▼ 33.33%
includes/vendor/CMB2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
includes/vendor/CMB2/images/ico-delete.png0.70KB0.72KB0.00%
includes/vendor/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
includes/vendor/CMB2/apigen/theme-bootstrap/src/resources/resize.png0.12KB0.10KB▼ 13.22%