Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.78ms] Passed 4 tests
A check of server-side resources used by ThemeHunk Customizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 49.03 ▼4.25 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.21 ▼0.05 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 54.97 ▲5.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 118.46 ▼3.73 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 46.69 ▲4.92 |
Server storage [IO: ▲3.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 245 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
ThemeHunk Customizer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲111 | 14.54 ▲0.03 | 2.12 ▲0.21 | 129.10 ▼74.08 |
Dashboard /wp-admin | 2,254 ▲50 | 4.87 ▼0.09 | 206.27 ▲14.75 | 174.28 ▼21.88 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.08 ▼0.00 | 108.95 ▲18.60 | 278.66 ▲74.41 |
Add New Post /wp-admin/post-new.php | 1,559 ▲118 | 20.48 ▼1.82 | 906.86 ▲9.26 | 216.86 ▼119.00 |
Media Library /wp-admin/upload.php | 1,436 ▲57 | 4.16 ▼0.02 | 247.95 ▲37.39 | 284.77 ▲185.73 |
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_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/themehunk-customizer/notify/notify-html.php
- 165× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/themehunk-customizer/amaz-store/customizer/section/frontpage/product-list.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themehunk-customizer/big-store/big-store-admin/woo/woo-ajax.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory_uri() in wp-content/plugins/themehunk-customizer/featuredlite/inc/constant.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/themehunk-customizer/amaz-store/customizer/section/frontpage/category-slider.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/themehunk-customizer/amaz-store/amaz-store-front-page/front-ribbon.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/themehunk-customizer/featuredlite/include.php:2
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/themehunk-customizer/big-store/customizer/section/frontpage/category-tab.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/themehunk-customizer/big-store/customizer/section/frontpage/banner.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themehunk-customizer/shopline/inc/testimonial.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_parent_theme_file_uri() in wp-content/plugins/themehunk-customizer/shopline/inc/constant.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: oneline-lite, themehunk, customizer, team, service...
themehunk-customizer/themehunk-customizer.php 92% from 13 tests
The main PHP script in "ThemeHunk Customizer" version 2.7.8 is automatically included on every request by WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin45,330 lines of code in 209 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 171 | 2,679 | 2,312 | 31,347 |
JavaScript | 22 | 2,385 | 1,834 | 10,532 |
CSS | 15 | 203 | 62 | 3,397 |
Markdown | 1 | 18 | 0 | 54 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 12.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 46 | 100.00% |
▷ Final classes | 1 | 2.17% |
Methods | 143 | |
▷ Static methods | 2 | 1.40% |
▷ Public methods | 136 | 95.10% |
▷ Protected methods | 5 | 3.50% |
▷ Private methods | 2 | 1.40% |
Functions | 228 | |
▷ Named functions | 227 | 99.56% |
▷ Anonymous functions | 1 | 0.44% |
Constants | 31 | |
▷ Global constants | 31 | 100.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
25 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
elanzalite/images/style5.png | 1.53KB | 0.31KB | ▼ 79.66% |
themehunk/customizer-radio-image/img/gradientovly-4.png | 7.75KB | 7.15KB | ▼ 7.85% |
elanzalite/images/style3.png | 1.53KB | 0.29KB | ▼ 81.12% |
themehunk/customizer-radio-image/img/gradientovly-1.png | 7.27KB | 6.73KB | ▼ 7.35% |
shopline/customizer/images/th-logo.png | 1.62KB | 1.07KB | ▼ 34.04% |