Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.52ms] Passed 4 tests
An overview of server-side resources used by ElasticPress Debugging Add-On
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.73 ▲4.19 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.93 ▲1.90 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.51 ▼4.41 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.24 ▼12.19 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.88 ▲0.62 |
Server storage [IO: ▲0.06MB] [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 |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for ElasticPress Debugging Add-On
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.19 ▼1.20 | 2.02 ▲0.22 | 43.21 ▼7.16 |
Dashboard /wp-admin | 2,212 ▲21 | 4.84 ▼1.06 | 109.56 ▲2.74 | 41.68 ▼0.72 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.13 ▲0.11 | 38.81 ▼2.39 | 36.19 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,539 ▼0 | 23.14 ▲0.06 | 591.15 ▲8.35 | 58.99 ▲1.01 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.19 ▼0.01 | 97.71 ▼8.77 | 41.03 ▼6.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function DebugBarElasticPress\\plugin_dir_url() in wp-content/plugins/debug-bar-elasticpress/debug-bar-elasticpress.php:22
- > 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 errors were detected
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: elasticpress, debug, elasticsearch, debug bar
debug-bar-elasticpress/debug-bar-elasticpress.php 92% from 13 tests
Analyzing the main PHP file in "ElasticPress Debugging Add-On" version 3.1.0
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,133 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 206 | 492 | 932 |
CSS | 1 | 21 | 7 | 125 |
JavaScript | 1 | 12 | 10 | 76 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 37 | 80.43% |
▷ Protected methods | 9 | 19.57% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected