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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.17ms] Passed 4 tests
Analyzing server-side resources used by Hello Kushimoto
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.32 ▼0.25 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.78 ▼1.21 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.64 ▼7.29 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.57 ▼11.92 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.97 ▲6.34 |
Hello Kushimoto /wp-admin/options-general.php?page=hello_kushimoto | 3.26 | 34.47 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Hello Kushimoto
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲226 | 13.19 ▼1.24 | 1.93 ▲0.27 | 41.86 ▼7.04 |
Dashboard /wp-admin | 2,362 ▲171 | 5.88 ▼0.00 | 99.22 ▼8.86 | 85.05 ▲39.76 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.06 | 34.42 ▼2.08 | 47.44 ▲12.59 |
Add New Post /wp-admin/post-new.php | 1,594 ▲75 | 22.64 ▼0.68 | 679.44 ▼26.32 | 84.02 ▲32.92 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.29 ▲0.10 | 104.66 ▲2.28 | 43.90 ▼0.77 |
Hello Kushimoto /wp-admin/options-general.php?page=hello_kushimoto | 834 | 2.02 | 27.66 | 49.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
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)
Good news, no errors were detected
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
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Hello_Kushimoto_Speaker' not found in wp-content/plugins/hello-kushimoto/src/speaker/concrete/class-louis-armstrong.php:8
- > PHP Fatal error
Uncaught Error: Class 'Hello_Kushimoto_Random_Speaker' not found in wp-content/plugins/hello-kushimoto/src/speaker/concrete/class-bash-wapuu.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/hello-kushimoto/hello-kushimoto.php:24
- > PHP Fatal error
Uncaught Error: Class 'Hello_Kushimoto_Speaker' not found in wp-content/plugins/hello-kushimoto/src/speaker/abstract/class-hello-kushimoto-random-speaker.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/hello-kushimoto/src/class-hello-kushimoto-cli.php:6
- > PHP Fatal error
Uncaught Error: Class 'Hello_Kushimoto_Random_Speaker' not found in wp-content/plugins/hello-kushimoto/src/speaker/concrete/class-miyasan.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: wctokyo, kushimoto, joke, sample
hello-kushimoto/hello-kushimoto.php 92% from 13 tests
The main PHP script in "Hello Kushimoto" version 2.10.0 is automatically included on every request by WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
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
Good job! No executable or dangerous file extensions detected688 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 163 | 314 | 472 |
PO File | 2 | 44 | 46 | 125 |
CSS | 3 | 5 | 0 | 34 |
JSON | 1 | 0 | 0 | 28 |
XML | 1 | 1 | 3 | 16 |
YAML | 1 | 6 | 5 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 42 | 82.35% |
▷ Protected methods | 1 | 1.96% |
▷ Private methods | 8 | 15.69% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 42.98KB | 11.86KB | ▼ 72.41% |