Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.72ms] Passed 4 tests
Server-side resources used by Hostinger
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 35.96 ▼6.12 |
Dashboard /wp-admin | 3.53 ▲0.18 | 48.67 ▼12.86 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 52.58 ▲3.96 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 90.94 ▼4.87 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.07 ▲0.97 |
Server storage [IO: ▲3.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 126 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
hostinger_first_login_at |
aioseo_activation_redirect |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
wpforms_activation_redirect |
optin_monster_api_activation_redirect_disabled |
Browser metrics Passed 4 tests
Checking browser requirements for Hostinger
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲92 | 14.96 ▲0.24 | 1.68 ▲0.09 | 37.72 ▼5.04 |
Dashboard /wp-admin | 2,262 ▲85 | 6.87 ▲1.29 | 144.38 ▲44.74 | 42.54 ▼0.45 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 4.06 ▲2.04 | 52.62 ▲13.56 | 34.27 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,580 ▲45 | 24.51 ▲1.14 | 604.65 ▼39.28 | 29.58 ▼23.97 |
Media Library /wp-admin/upload.php | 1,469 ▲72 | 6.31 ▲2.09 | 101.15 ▲0.70 | 39.45 ▼3.56 |
Get started /wp-admin/admin.php?page=hostingerhome | 2,659 | 10.82 | 347.08 | 100.66 |
Learn /wp-admin/admin.php?page=hostingerlearn | 2,764 | 10.98 | 314.73 | 75.55 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- widget_recent-comments
- wpforms_activation_redirect
- widget_theysaidso_widget
- aioseo_activation_redirect
- db_upgraded
- optin_monster_api_activation_redirect_disabled
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Hostinger_Onboarding_Step' not found in wp-content/plugins/hostinger/includes/admin/onboarding/steps/class-hostinger-onboarding-add-post.php:3
- > PHP Fatal error
Uncaught Error: Class 'Hostinger_Helper' not found in wp-content/plugins/hostinger/includes/amplitude/class-hostinger-amplitude.php:14
- > PHP Fatal error
Uncaught Error: Class 'Hostinger_Onboarding_Step' not found in wp-content/plugins/hostinger/includes/admin/onboarding/steps/class-hostinger-onboarding-add-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/hostinger/includes/class-hostinger-errors.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/hostinger/includes/views/hostinger-coming-soon.php:2
- > PHP Fatal error
Uncaught Error: Class 'Hostinger_Onboarding_Step' not found in wp-content/plugins/hostinger/includes/admin/onboarding/steps/class-hostinger-onboarding-logo-step.php:3
- > PHP Fatal error
Uncaught Error: Class 'Hostinger_Onboarding_Step' not found in wp-content/plugins/hostinger/includes/admin/onboarding/steps/class-hostinger-onboarding-add-product.php:3
- > PHP Fatal error
Uncaught Error: Class 'Hostinger_Onboarding_Step' not found in wp-content/plugins/hostinger/includes/admin/onboarding/steps/class-hostinger-onboarding-connect-domain.php:3
- > PHP Fatal error
Uncaught Error: Class 'Hostinger_Onboarding_Step' not found in wp-content/plugins/hostinger/includes/admin/onboarding/steps/class-hostinger-onboarding-description.php:3
- > PHP Fatal error
Uncaught Error: Class 'Hostinger_Onboarding_Step' not found in wp-content/plugins/hostinger/includes/admin/onboarding/steps/class-hostinger-onboarding-image-step.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hostingerlearn
- > Console-api (warning) in wp-content/plugins/hostinger/assets/js/main.js?ver=1.9.5+1:194960
VIDEOJS:" "WARN:" "Player \"hts-video-player\" is already initialised. Options will not be applied.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hostingerlearn
- > Other (warning) in unknown
https://www.youtube.com/s/player/31e0b6d9/www-widgetapi.vflset/www-widgetapi.js 1248 Unrecognized feature: 'web-share'.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hostingerlearn
- > Console-api (warning) in wp-content/plugins/hostinger/assets/js/main.js?ver=1.9.5+1:194960
VIDEOJS:" "WARN:" "videojs.createTimeRange is deprecated and will be removed in 9.0; please use videojs.time.createTimeRanges instead.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Contributors: Contributors not specified
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in hostinger/assets to your readme.txt
hostinger/hostinger.php 92% from 13 tests
The main file in "Hostinger" v. 1.9.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.9" instead of "5.6")
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
No dangerous file extensions were detected17,699 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 11,293 |
PO File | 10 | 989 | 1,188 | 3,357 |
PHP | 40 | 338 | 78 | 1,689 |
Sass | 9 | 190 | 0 | 971 |
JavaScript | 8 | 41 | 3 | 321 |
SVG | 10 | 0 | 0 | 66 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 13 | 9.22% |
▷ Public methods | 119 | 84.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 15.60% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 46 | |
▷ Global constants | 10 | 21.74% |
▷ Class constants | 36 | 78.26% |
▷ Public constants | 25 | 69.44% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.63MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-772x250.png | 55.34KB | 23.80KB | ▼ 57.00% |
assets/images/illustration.png | 85.65KB | 37.44KB | ▼ 56.29% |
src/images/illustration.png | 85.65KB | 37.44KB | ▼ 56.29% |
assets/images/banner-1544x500.png | 171.72KB | 81.57KB | ▼ 52.50% |
assets/images/point-domain-cover.png | 10.51KB | 4.47KB | ▼ 57.48% |