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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.13ms] Passed 4 tests
This is a short check of server-side resources used by Debug Bar Rewrite Rules
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.67 ▲0.68 |
Dashboard /wp-admin | 3.37 ▲0.07 | 43.93 ▼5.89 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.68 ▼0.78 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 81.17 ▼22.52 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.96 ▲5.69 |
Rewrite Rules /wp-admin/tools.php?page=rewrite-rules | 3.31 | 30.17 |
Server storage [IO: ▲0.07MB] [DB: ▲0.33MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
debug_bar_rewrite_rules_installed |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
debug_bar_rewrite_rules_filters_list |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Debug Bar Rewrite Rules
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.19 ▼1.21 | 1.68 ▼0.01 | 40.40 ▼7.26 |
Dashboard /wp-admin | 2,210 ▲19 | 4.82 ▼0.06 | 106.31 ▼7.76 | 39.58 ▼5.90 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.02 | 34.89 ▼5.10 | 31.01 ▼5.67 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.19 ▲0.00 | 661.39 ▲73.16 | 64.24 ▲13.02 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▲0.01 | 102.75 ▲6.51 | 45.20 ▲2.24 |
Rewrite Rules /wp-admin/tools.php?page=rewrite-rules | 1,816 | 1.86 | 27.10 | 52.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/debug-bar-rewrite-rules/validator.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/debug-bar-rewrite-rules/templates/info-rules.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/debug-bar-rewrite-rules/templates/info-filters.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/debug-bar-rewrite-rules/templates/info-stats.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Contributors: Contributors not specified
debug-bar-rewrite-rules/rewrite-rules.php 92% from 13 tests
The main PHP file in "Debug Bar Rewrite Rules" ver. 0.6.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("debug-bar-rewrite-rules.php" instead of "rewrite-rules.php")
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
No dangerous file extensions were detected1,131 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 169 | 291 | 508 |
JavaScript | 2 | 94 | 98 | 278 |
CSS | 2 | 42 | 0 | 238 |
PO File | 1 | 31 | 33 | 82 |
Markdown | 1 | 6 | 0 | 25 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 19 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.64% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin