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.12MB] [CPU: ▼6.49ms] Passed 4 tests
Server-side resources used by Espresso Diagnostics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 33.82 ▼9.92 |
Dashboard /wp-admin | 3.43 ▲0.08 | 45.58 ▼13.82 |
Posts /wp-admin/edit.php | 3.55 ▲0.18 | 48.84 ▲3.11 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 91.40 ▼3.00 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.20 ▲0.79 |
WP Diagnostics /wp-admin/tools.php?page=espresso-diagnostics | 3.42 | 33.05 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Espresso Diagnostics
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.80 ▲0.41 | 1.95 ▼0.42 | 40.05 ▼5.86 |
Dashboard /wp-admin | 2,214 ▲26 | 5.88 ▼0.00 | 104.68 ▼12.58 | 41.56 ▼3.16 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.01 ▼0.05 | 39.53 ▼3.91 | 34.86 ▼5.19 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 18.08 ▼5.04 | 625.01 ▼30.46 | 49.77 ▼10.95 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.18 ▲0.06 | 96.64 ▼19.64 | 40.75 ▼4.34 |
WP Diagnostics /wp-admin/tools.php?page=espresso-diagnostics | 1,454 | 2.05 | 23.54 | 33.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/espresso-diagnostics/admin/partials/espresso-diagnostics-admin-display.php:21
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 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
5 plugin tags: diagnostics, json export, csv export, security, export plugin
espresso-diagnostics/espresso-diagnostics.php Passed 13 tests
The main file in "Espresso Diagnostics" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
121 characters long description:
Plugin that extracts data on WP installation, installed themes, installed plugins and server info for diagnostic purposes
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
Everything looks great! No dangerous files found in this plugin705 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 159 | 509 | 637 |
CSS | 1 | 11 | 9 | 65 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 20 | 58.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 41.18% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected