Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼289.58ms] Passed 4 tests
A check of server-side resources used by 0-Errors
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 56.78 ▲7.93 |
Dashboard /wp-admin | 3.44 ▲0.03 | 33.96 ▲0.36 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.94 ▲1.75 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 100.51 ▼1,151.96 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 24.77 ▼8.46 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for 0-Errors
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,806 ▲84 | 15.84 ▲0.28 | 6.22 ▼0.23 | 2.09 ▼0.15 |
Dashboard /wp-admin | 2,912 ▲50 | 6.07 ▼0.11 | 125.14 ▼15.36 | 163.64 ▲2.40 |
Posts /wp-admin/edit.php | 2,711 ▲23 | 3.25 ▲0.01 | 63.11 ▼3.38 | 137.32 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,773 ▲105 | 17.15 ▼0.97 | 430.00 ▼5.90 | 152.64 ▼7.33 |
Media Library /wp-admin/upload.php | 1,721 ▲23 | 5.48 ▼0.03 | 147.88 ▲8.11 | 186.91 ▼7.93 |
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
This plugin's uninstaller ran successfully
Smoke tests 75% 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 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/0-errors/inc/stgs-page.php on line 13
- > PHP Fatal error
require(): Failed opening required 'ABSPATHwp-admin/options-head.php' (include_path='.:/usr/share/php') in wp-content/plugins/0-errors/inc/stgs-page.php on line 13
- > PHP Warning
require(ABSPATHwp-admin/options-head.php): failed to open stream: No such file or directory in wp-content/plugins/0-errors/inc/stgs-page.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/0-errors/0-errors.php:16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: debug, error_reporting, email errors, errors
0-errors/0-errors.php 92% from 13 tests
"0-Errors" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected937 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 133 | 326 | 494 |
CSS | 2 | 47 | 10 | 327 |
JavaScript | 1 | 26 | 25 | 116 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/img/close.png | 0.71KB | 0.36KB | ▼ 49.45% |