Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼145.91ms] Passed 4 tests
This is a short check of server-side resources used by Stage WP Plugin Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▲0.18 | 34.52 ▲0.32 |
Dashboard /wp-admin | 3.31 ▲0.26 | 42.79 ▼2.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 45.38 ▼1.48 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 89.76 ▼580.28 |
Media Library /wp-admin/upload.php | 3.20 ▲0.20 | 31.70 ▲0.18 |
Stage Management /wp-admin/plugins.php?page=stage-wp-plugin-manager | 3.21 | 32.54 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Stage WP Plugin Manager: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,727 ▲131 | 15.96 ▲0.26 | 10.94 ▲1.20 | 47.84 ▼2.02 |
Dashboard /wp-admin | 3,005 ▲71 | 5.96 ▼0.14 | 144.64 ▼1.54 | 110.64 ▼0.10 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.71 ▼0.14 | 67.25 ▲3.34 | 96.99 ▲8.04 |
Add New Post /wp-admin/post-new.php | 1,706 ▲206 | 18.43 ▼0.15 | 397.66 ▲7.84 | 106.95 ▲1.41 |
Media Library /wp-admin/upload.php | 1,845 ▲38 | 5.02 ▲0.00 | 156.75 ▲0.16 | 126.38 ▲7.66 |
Stage Management /wp-admin/plugins.php?page=stage-wp-plugin-manager | 1,611 | 2.23 | 72.08 | 79.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/stage-wp-plugin-manager/views/admin/help-getting-started.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/stage-wp-plugin-manager/views/admin/script.js.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/stage-wp-plugin-manager/views/admin/help-credits.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/stage-wp-plugin-manager/stage-wp-plugin-manager.class.php:34
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/stage-wp-plugin-manager/views/admin/help-add-and-extend.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/stage-wp-plugin-manager/views/admin/help-description.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/stage-wp-plugin-manager/views/admin/help-attach-and-detach.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/stage-wp-plugin-manager/views/admin/admin-warning.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/stage-wp-plugin-manager/views/admin/admin-menu.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
stage-wp-plugin-manager/stage-wp-plugin-manager.php 92% from 13 tests
"Stage WP Plugin Manager" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 474 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,190 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 106 | 401 | 795 |
PO File | 1 | 72 | 76 | 319 |
Markdown | 1 | 38 | 0 | 76 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 1 | 1.89% |
▷ Public methods | 35 | 66.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 33.96% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected