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 gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.06ms] Passed 4 tests
Analyzing server-side resources used by Hao Image Box
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.84 ▲3.16 |
Dashboard /wp-admin | 3.34 ▲0.03 | 56.65 ▲2.55 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 55.54 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.40 ▼6.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.62 ▼6.88 |
hao image box 设置 /wp-admin/options-general.php?page=hao-image-box | 3.20 | 35.85 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
hao_image_box_options |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Hao Image Box
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.38 | 1.90 ▼0.40 | 45.38 ▼0.51 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▼0.00 | 121.77 ▲25.44 | 50.87 ▲10.98 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▲0.03 | 41.97 ▲1.80 | 39.64 ▲6.54 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.08 ▲2.05 | 664.30 ▼119.13 | 55.68 ▼8.89 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.30 ▲0.02 | 105.35 ▼22.91 | 45.85 ▼4.41 |
hao image box 设置 /wp-admin/options-general.php?page=hao-image-box | 864 | 2.00 | 24.91 | 71.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- hao_image_box_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=hao-image-box
- > Warning in wp-admin/includes/template.php+1771
call_user_func() expects parameter 1 to be a valid callback, function 'sandbox_general_options_callback' not found or invalid function name
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hao-image-box/inc/hao-image-view.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hao-image-box/hao-image-box.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hao-image-box/inc/hao-image-setting.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Contributors: Contributors not specified
- Contributors: Please add at least on tag
hao-image-box/hao-image-box.php 92% from 13 tests
Analyzing the main PHP file in "Hao Image Box" version 1.0
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.9.0" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected461 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 35 | 14 | 249 |
CSS | 1 | 28 | 7 | 211 |
JavaScript | 1 | 0 | 0 | 1 |
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.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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