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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼259.02ms] Passed 4 tests
This is a short check of server-side resources used by Debug Bar Post Meta
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 35.24 ▲2.64 |
Dashboard /wp-admin | 3.06 ▲0.01 | 43.47 ▼9.77 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 42.88 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 92.89 ▼1,015.80 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 28.31 ▼10.12 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Debug Bar Post Meta
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 16.24 ▲0.73 | 7.89 ▲0.35 | 50.92 ▲0.76 |
Dashboard /wp-admin | 2,959 ▲106 | 5.95 ▲0.11 | 137.96 ▼11.16 | 107.14 ▼0.10 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.69 ▼0.13 | 63.85 ▼3.76 | 98.95 ▲6.29 |
Add New Post /wp-admin/post-new.php | 1,653 ▼4 | 18.77 ▼0.08 | 365.31 ▲5.84 | 110.64 ▲2.92 |
Media Library /wp-admin/upload.php | 1,775 ▲6 | 4.98 ▼0.03 | 141.53 ▼7.56 | 111.97 ▼12.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script 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 everything seems fine, this is not 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-bar-post-meta/debug-bar-post-meta.php:21
- > PHP Fatal error
Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar-post-meta/class-debug-bar-post-meta.php:15
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Sample of post meta.)
debug-bar-post-meta/debug-bar-post-meta.php Passed 13 tests
The principal PHP file in "Debug Bar Post Meta" v. 0.5.8 is loaded by WordPress automatically on each request
41 characters long description:
Displays all of the post meta for a post.
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 plugin3,792 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 3,686 |
PHP | 2 | 12 | 43 | 47 |
Markdown | 1 | 12 | 0 | 23 |
XML | 1 | 7 | 5 | 14 |
JavaScript | 1 | 0 | 0 | 13 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.25MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 256.75KB | 69.06KB | ▼ 73.10% |