Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.37ms] Passed 4 tests
Server-side resources used by DebugMe
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.30 ▲0.18 |
Dashboard /wp-admin | 3.46 ▲0.12 | 48.37 ▼12.37 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.67 ▲1.42 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 87.38 ▼2.52 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.49 ▲1.24 |
Server info /wp-admin/admin.php?page=debug-me-server-info | 3.61 | 37.32 |
Log viewer /wp-admin/admin.php?page=debug-me-log-viewer | 3.36 | 32.29 |
Server storage [IO: ▲1.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
DebugMe: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.20 ▼1.11 | 1.70 ▼0.08 | 44.34 ▲1.19 |
Dashboard /wp-admin | 2,237 ▲52 | 4.86 ▼0.09 | 106.64 ▼29.88 | 73.61 ▲24.46 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 1.99 ▼0.05 | 37.45 ▼2.70 | 36.01 ▲5.62 |
Add New Post /wp-admin/post-new.php | 1,691 ▲170 | 22.32 ▼0.86 | 726.86 ▲116.22 | 50.94 ▲1.89 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.22 ▲0.05 | 102.56 ▼0.83 | 74.39 ▲31.51 |
Server info /wp-admin/admin.php?page=debug-me-server-info | 9,307 | 4.02 | 105.28 | 178.33 |
Log viewer /wp-admin/admin.php?page=debug-me-log-viewer | 1,118 | 2.71 | 48.34 | 53.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/debug-me/views/header.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
debug-me/index.php 85% from 13 tests
This is the main PHP file of "DebugMe" version 0.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("debug-me.php" instead of "index.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin4,307 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 2,313 |
PHP | 11 | 164 | 73 | 746 |
CSS | 11 | 29 | 31 | 521 |
JavaScript | 10 | 79 | 45 | 409 |
Sass | 7 | 50 | 3 | 278 |
SVG | 2 | 1 | 0 | 27 |
PO File | 1 | 0 | 2 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 36 | 97.30% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 6 | 16.22% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
7 compressed PNG files occupy 0.82MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/vendor/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/img/logo.png | 3.69KB | 3.58KB | ▼ 2.86% |
assets/img/main-logo.png | 3.67KB | 3.57KB | ▼ 2.82% |
assets/vendor/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |