Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.82MB] [CPU: ▼2.86ms] Passed 4 tests
This is a short check of server-side resources used by HiiWaterwheel WordPress Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 47.47 ▼0.56 |
Dashboard /wp-admin | 4.20 ▲0.89 | 54.85 ▼4.33 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 57.62 ▲7.41 |
Add New Post /wp-admin/post-new.php | 6.79 ▲0.90 | 93.44 ▼13.97 |
Media Library /wp-admin/upload.php | 4.12 ▲0.88 | 47.05 ▲9.07 |
Add New /wp-admin/post-new.php?post_type=waterwheel | 4.52 | 57.59 |
All Waterwheels /wp-admin/edit.php?post_type=waterwheel | 4.17 | 44.99 |
Server storage [IO: ▲4.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 424 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
hiiwaterwheel_version |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for HiiWaterwheel WordPress Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲154 | 13.49 ▼0.91 | 10.87 ▲8.76 | 42.08 ▼0.59 |
Dashboard /wp-admin | 2,238 ▲61 | 5.68 ▲0.07 | 92.99 ▲5.17 | 40.49 ▲1.59 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.06 ▲0.05 | 38.08 ▼1.02 | 36.08 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.04 ▲0.06 | 714.35 ▲9.43 | 80.04 ▲33.48 |
Media Library /wp-admin/upload.php | 1,443 ▲46 | 4.36 ▲0.15 | 98.96 ▼32.28 | 42.99 ▼7.97 |
Add New /wp-admin/post-new.php?post_type=waterwheel | 1,784 | 3.68 | 67.86 | 46.30 |
All Waterwheels /wp-admin/edit.php?post_type=waterwheel | 1,112 | 1.97 | 34.98 | 31.41 |
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 detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- hiiwaterwheel_version
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 59× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/hiiwaterwheel/lib/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hiiwaterwheel/lib/cmb2-taxonomy/plugin.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiiwaterwheel/lib/cmb2-field-post-search-ajax/cmb-field-post-search-ajax.php:34
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/hiiwaterwheel/lib/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/hiiwaterwheel/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/hiiwaterwheel/templates/hiiwaterwheel-basic.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiiwaterwheel/lib/cmb2/init.php:127
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/hiiwaterwheel/lib/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hiiwaterwheel/hiiwaterwheel-functions.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/hiiwaterwheel/lib/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: wordpress, plugin, images, waterwheel, carousel
hiiwaterwheel/hiiwaterwheel.php Passed 13 tests
The principal PHP file in "HiiWaterwheel WordPress Plugin" v. 0.0.5 is loaded by WordPress automatically on each request
63 characters long description:
This plugin allows you create a basic waterwheel image carousel
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin47,842 lines of code in 254 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 13,782 | 17,882 | 31,544 |
PHP | 78 | 2,276 | 6,286 | 7,562 |
CSS | 19 | 1,162 | 1,170 | 5,225 |
JavaScript | 12 | 504 | 335 | 1,804 |
Sass | 15 | 291 | 25 | 1,330 |
Markdown | 5 | 117 | 0 | 293 |
JSON | 3 | 0 | 0 | 66 |
SVG | 2 | 0 | 2 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 8 | 10.13% |
▷ Concrete classes | 71 | 89.87% |
▷ Final classes | 0 | 0.00% |
Methods | 564 | |
▷ Static methods | 87 | 15.43% |
▷ Public methods | 474 | 84.04% |
▷ Protected methods | 87 | 15.43% |
▷ Private methods | 3 | 0.53% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 12 | 52.17% |
▷ Class constants | 11 | 47.83% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 PNG files occupy 0.95MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb-field-select_tagger/screenshot-3.png | 3.22KB | 3.26KB | 0.00% |
lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
assets/screenshot-3.png | 76.24KB | 21.63KB | ▼ 71.62% |
lib/cmb-field-select_tagger/screenshot-2.png | 4.91KB | 4.88KB | ▼ 0.74% |
lib/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |