Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.06ms] Passed 4 tests
This is a short check of server-side resources used by Hagakure - Yet Another Error Reporter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 34.95 ▼7.60 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.28 ▼4.47 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.07 ▲6.50 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.22 ▲2.12 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.71 ▲5.71 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Hagakure - Yet Another Error Reporter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼1.42 | 4.22 ▲2.13 | 41.07 ▼4.38 |
Dashboard /wp-admin | 2,209 ▲21 | 4.81 ▼0.08 | 110.17 ▼4.10 | 39.10 ▼2.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.01 | 41.39 ▲6.90 | 34.67 ▲2.73 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 23.37 ▼0.08 | 683.50 ▲25.76 | 58.87 ▲3.75 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.19 ▲0.07 | 94.74 ▼18.66 | 42.77 ▼6.88 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Kunoichi\\Hagakure\\Pattern\\Singleton' not found in wp-content/plugins/hagakure/src/Kunoichi/Hagakure/DbLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/hagakure/src/Kunoichi/Hagakure/Command.php:11
- > PHP Fatal error
Uncaught Error: Class 'Kunoichi\\Hagakure\\Pattern\\Singleton' not found in wp-content/plugins/hagakure/src/Kunoichi/Hagakure/ErrorHandler.php:13
- > PHP Fatal error
Uncaught Error: Class 'Kunoichi\\Hagakure\\Pattern\\Singleton' not found in wp-content/plugins/hagakure/src/Kunoichi/Hagakure/SlowQuery.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: error, php, recovery
hagakure/hagakure.php 92% from 13 tests
Analyzing the main PHP file in "Hagakure - Yet Another Error Reporter" version 1.2.0
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected808 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 181 | 544 | 803 |
JSON | 1 | 0 | 0 | 5 |
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.47 |
Average class complexity | 14.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 19 | 32.76% |
▷ Public methods | 48 | 82.76% |
▷ Protected methods | 7 | 12.07% |
▷ Private methods | 3 | 5.17% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected