Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.31ms] Passed 4 tests
Server-side resources used by Set the Stage
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 44.39 ▲5.23 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.91 ▲1.29 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.84 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.56 ▼9.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.15 ▲2.19 |
Set the Stage /wp-admin/options-general.php?page=drgnff-wp-stage-switcher | 3.27 | 36.37 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Set the Stage: 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,820 ▲59 | 14.26 ▼0.30 | 1.87 ▲0.05 | 39.09 ▼4.32 |
Dashboard /wp-admin | 2,214 ▲36 | 5.63 ▼0.13 | 84.36 ▼18.35 | 38.55 ▼7.48 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.04 ▲0.03 | 34.58 ▼10.38 | 33.78 ▼6.16 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 18.01 ▼5.38 | 641.33 ▲0.99 | 77.48 ▲1.65 |
Media Library /wp-admin/upload.php | 1,416 ▲22 | 4.24 ▲0.07 | 97.80 ▲1.44 | 43.56 ▼0.10 |
Set the Stage /wp-admin/options-general.php?page=drgnff-wp-stage-switcher | 1,192 | 2.45 | 47.42 | 29.09 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function Drgnff\\WP\\StageSwitcher\\add_action() in wp-content/plugins/set-the-stage/set-the-stage.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3 in set-the-stage/assets to your readme.txt
set-the-stage/set-the-stage.php 92% from 13 tests
The entry point to "Set the Stage" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin913 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 183 | 41 | 801 |
CSS | 1 | 16 | 2 | 63 |
JavaScript | 1 | 17 | 4 | 49 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 46 | |
▷ Static methods | 6 | 13.04% |
▷ Public methods | 42 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.70% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected