Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.62ms] Passed 4 tests
Server-side resources used by Hoko
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.18 ▲0.41 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.88 ▼0.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.71 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.01 ▼21.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.65 ▲3.72 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options |
---|
hokoir_plugin_widget_drop |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_hoko_widget |
widget_recent-comments |
hokoir_plugin_widget_new |
Browser metrics Passed 4 tests
Hoko: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.20 ▼0.35 | 1.59 ▲0.01 | 41.74 ▼1.59 |
Dashboard /wp-admin | 2,204 ▲24 | 5.62 ▼0.02 | 82.07 ▼10.64 | 43.24 ▼0.61 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.03 | 34.64 ▼7.16 | 42.50 ▲6.29 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 22.92 ▲4.63 | 710.01 ▲45.82 | 63.18 ▲3.08 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.20 ▲0.01 | 98.85 ▼1.60 | 48.12 ▲4.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- hokoir_plugin_widget_drop
- db_upgraded
- widget_recent-comments
- hokoir_plugin_widget_new
- widget_recent-posts
- widget_theysaidso_widget
- widget_hoko_widget
- can_compress_scripts
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)
Everything seems fine, however this is by no means 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hoko/hokoir.php
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 93% from 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
2 plugin tags: shortcode, widget
hoko/hokoir.php 85% from 13 tests
Analyzing the main PHP file in "Hoko" version 1.0
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("hoko.php" instead of "hokoir.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 219 characters long)
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
Everything looks great! No dangerous files found in this plugin480 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 24 | 296 |
CSS | 1 | 10 | 0 | 119 |
JavaScript | 2 | 0 | 9 | 65 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin