Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/auto-hads/includes/class-model.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; AutoHadsModel has a deprecated constructor
Server metrics [RAM: ▼1.61MB] [CPU: ▼53.09ms] Passed 4 tests
Analyzing server-side resources used by Auto hads auto-hads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.09 | 6.43 ▼34.52 |
Dashboard /wp-admin | 2.39 ▼0.91 | 7.80 ▼42.93 |
Posts /wp-admin/edit.php | 2.39 ▼0.96 | 8.24 ▼46.52 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.49 | 9.11 ▼88.40 |
Media Library /wp-admin/upload.php | 2.39 ▼0.83 | 8.51 ▼28.77 |
Manual Posts /wp-admin/admin.php?page=auto-hads-posts | 2.39 | 6.96 |
All Auto Hads /wp-admin/admin.php?page=auto-hads-list | 2.39 | 7.48 |
Manual Products /wp-admin/admin.php?page=auto-hads-woocommerce | 2.39 | 7.81 |
Auto Hads /wp-admin/admin.php?page=auto-hads | 2.39 | 7.91 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Auto hads auto-hads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.20 ▼1.18 | 4.35 ▲2.74 | 42.01 ▲3.12 |
Dashboard /wp-admin | 2,237 ▲46 | 4.86 ▼0.21 | 94.99 ▼11.55 | 40.07 ▼1.92 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.00 ▼0.01 | 36.27 ▼5.34 | 35.64 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,559 ▲15 | 23.07 ▲4.74 | 598.80 ▼65.79 | 47.91 ▼7.55 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.20 ▼0.07 | 96.33 ▼9.60 | 42.81 ▼1.64 |
Manual Posts /wp-admin/admin.php?page=auto-hads-posts | 1,392 | 1.81 | 25.20 | 33.16 |
All Auto Hads /wp-admin/admin.php?page=auto-hads-list | 818 | 2.06 | 24.33 | 29.90 |
Manual Products /wp-admin/admin.php?page=auto-hads-woocommerce | 1,525 | 1.68 | 25.90 | 34.23 |
Auto Hads /wp-admin/admin.php?page=auto-hads | 779 | 2.03 | 23.80 | 24.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/auto-hads/includes/class-model.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; AutoHadsModel has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto-hads
- > Deprecated in wp-content/plugins/auto-hads/includes/class-model.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; AutoHadsModel has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto-hads
- > Deprecated in wp-content/plugins/auto-hads/includes/class-html-node.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; auto_hads_html_node has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto-hads
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- > GET request to /wp-admin/admin.php?page=auto-hads-woocommerce
- > Notice in wp-content/plugins/auto-hads/themes/woocommerce.php+70
Undefined variable: tag_sale
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto-hads-woocommerce
- > Notice in wp-content/plugins/auto-hads/includes/ah-funtions.php+70
Trying to get property 'cap' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto-hads-woocommerce
- > Notice in wp-content/plugins/auto-hads/includes/ah-funtions.php+70
Trying to get property 'assign_terms' of non-object
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto-hads-woocommerce
- > Notice in wp-admin/includes/class-walker-category-checklist.php+114
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto-hads-woocommerce
- > Notice in wp-admin/includes/class-walker-category-checklist.php+118
Trying to get property 'name' of non-object
SRP 0% 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/auto-hads/auto-hads.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/auto-hads/themes/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/auto-hads/themes/woocommerce.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/auto-hads/themes/list-posts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/auto-hads/themes/post.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in auto-hads/assets to your readme.txt
auto-hads/auto-hads.php 92% from 13 tests
The main PHP script in "Auto hads auto-hads" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,068 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 379 | 828 | 3,030 |
CSS | 2 | 21 | 12 | 1,655 |
JavaScript | 2 | 32 | 2 | 372 |
HTML | 1 | 0 | 5 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 44.20 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 98 | |
▷ Static methods | 1 | 1.02% |
▷ Public methods | 82 | 83.67% |
▷ Protected methods | 4 | 4.08% |
▷ Private methods | 12 | 12.24% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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