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
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼4.18ms] Passed 4 tests
An overview of server-side resources used by Pretty Debug
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 40.85 ▲0.26 |
Dashboard /wp-admin | 3.55 ▲0.25 | 53.47 ▲0.36 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 46.81 ▲0.60 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 83.08 ▼17.95 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 35.68 ▲2.09 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Pretty Debug
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲75 | 13.19 ▼1.19 | 2.41 ▲0.44 | 42.31 ▼3.19 |
Dashboard /wp-admin | 2,206 ▲15 | 4.89 ▲0.02 | 111.44 ▲2.26 | 43.28 ▲1.34 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 1.99 ▲0.00 | 35.28 ▲0.61 | 31.78 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.62 ▼5.63 | 674.22 ▼35.89 | 48.01 ▼5.19 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.08 | 94.52 ▼9.58 | 43.36 ▼3.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/pretty-debug/php-ref/tests/index.php
- > /wp-content/plugins/pretty-debug/pretty-debug.php
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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== pretty-debug ===
) - Screenshots: Screenshot #1 (A screenshot with mouseover) image not found
pretty-debug/pretty-debug.php Passed 13 tests
The principal PHP file in "Pretty Debug" v. 1.0 is loaded by WordPress automatically on each request
40 characters long description:
Pretty debug for var_dumps and print_r's
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,820 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 657 | 637 | 1,330 |
CSS | 2 | 74 | 42 | 405 |
JavaScript | 1 | 9 | 0 | 50 |
Markdown | 1 | 21 | 0 | 35 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 88.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 433.00 |
Average method complexity | 6.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 1 | 33.33% |
Methods | 36 | |
▷ Static methods | 13 | 36.11% |
▷ Public methods | 24 | 66.67% |
▷ Protected methods | 11 | 30.56% |
▷ Private methods | 1 | 2.78% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin