Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▲1.16ms] Passed 4 tests
This is a short check of server-side resources used by Hana Widgets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 41.35 ▲2.12 |
Dashboard /wp-admin | 3.58 ▲0.27 | 48.72 ▲1.30 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 48.30 ▲0.09 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 94.43 ▲1.12 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 37.41 ▲3.20 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_widget_hana_marketing |
widget_theysaidso_widget |
widget_hana_navigation |
widget_hana_recent_post |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Hana Widgets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲239 | 13.88 ▼0.50 | 16.48 ▲14.79 | 56.98 ▲13.48 |
Dashboard /wp-admin | 2,209 ▲18 | 5.85 ▼0.05 | 99.30 ▼11.34 | 40.32 ▼5.72 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.17 ▲0.01 | 36.57 ▼6.32 | 33.25 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.23 ▲0.04 | 655.10 ▼73.21 | 61.82 ▼11.09 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.04 | 97.64 ▼15.92 | 44.33 ▼2.98 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_hana_recent_post
- widget_recent-posts
- widget_hana_navigation
- widget_recent-comments
- widget_widget_hana_marketing
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hana-widgets/inc/widget-navigation.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hana-widgets/inc/widget-recentpost.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hana-widgets/inc/widget-marketing.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: widget
hana-widgets/hana-widgets.php 92% from 13 tests
The principal PHP file in "Hana Widgets" v. 1.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin12,909 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 421 | 217 | 5,678 |
JavaScript | 4 | 1,251 | 2,765 | 5,151 |
PHP | 9 | 150 | 132 | 1,395 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 5 | 8.47% |
▷ Public methods | 53 | 89.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.17% |
Functions | 16 | |
▷ Named functions | 16 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin