Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼142.56ms] Passed 4 tests
An overview of server-side resources used by Don't Stage Me Bro!
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 32.47 ▲5.75 |
Dashboard /wp-admin | 3.06 ▲0.00 | 43.59 ▼5.55 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 43.67 ▼2.12 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 91.46 ▼557.86 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 35.00 ▼4.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Don't Stage Me Bro!
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.92 ▲0.27 | 9.17 ▼2.72 | 44.42 ▼1.53 |
Dashboard /wp-admin | 2,967 ▲36 | 5.87 ▼0.17 | 131.73 ▼28.31 | 109.88 ▼2.46 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 64.83 ▼5.87 | 92.73 ▲3.81 |
Add New Post /wp-admin/post-new.php | 1,683 ▲89 | 18.48 ▼0.30 | 395.59 ▼93.53 | 118.54 ▲6.92 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.05 ▼0.05 | 156.10 ▼2.60 | 115.27 ▼1.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function LC_Dont_Stage_Me\\Assets\\add_action() in wp-content/plugins/dont-stage-me-bro/includes/assets.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function LC_Dont_Stage_Me\\Assets\\add_action() in wp-content/plugins/dont-stage-me-bro/includes/assets.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: staging, hosting, notice, team development
dont-stage-me-bro/dont-stage-me-bro.php 92% from 13 tests
"Don't Stage Me Bro!" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected127 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 51 | 107 | 89 |
JavaScript | 1 | 17 | 0 | 38 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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.32 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin