Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.27ms] Passed 4 tests
Server-side resources used by Awesome Hooks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 38.46 ▼2.63 |
Dashboard /wp-admin | 3.50 ▲0.20 | 46.80 ▲2.33 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.80 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 88.14 ▼9.79 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.27 ▲5.48 |
All Hooks /wp-admin/edit.php?post_type=awesome-hook | 3.47 | 36.43 |
License /wp-admin/edit.php?post_type=awesome-hook&page=license | 3.39 | 33.64 |
Add New Hook /wp-admin/post-new.php?post_type=awesome-hook | 3.55 | 52.58 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Awesome Hooks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲116 | 13.19 ▼1.19 | 4.19 ▲2.61 | 39.59 ▼5.67 |
Dashboard /wp-admin | 2,246 ▲58 | 5.89 ▼0.01 | 109.67 ▲2.22 | 43.14 ▲3.44 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.02 ▲0.02 | 38.93 ▼1.59 | 38.37 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,543 ▲7 | 21.44 ▼1.90 | 690.96 ▲65.80 | 52.64 ▲5.20 |
Media Library /wp-admin/upload.php | 1,431 ▲46 | 4.19 ▲0.03 | 96.18 ▼1.96 | 39.99 ▼3.02 |
All Hooks /wp-admin/edit.php?post_type=awesome-hook | 1,102 | 2.02 | 37.11 | 29.93 |
License /wp-admin/edit.php?post_type=awesome-hook&page=license | 822 | 2.06 | 24.66 | 26.52 |
Add New Hook /wp-admin/post-new.php?post_type=awesome-hook | 2,443 | 9.05 | 221.07 | 69.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- 97df133005cfa8561c9840fedf85c7b9
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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 | 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
Almost there! Just fix the following items
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant AWESOME_HOOKS_DIR - assumed 'AWESOME_HOOKS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-hooks/classes/class-awesome-hooks.php on line 37
- > PHP Fatal error
require_once(): Failed opening required 'AWESOME_HOOKS_DIRclasses/class-awesome-hooks-admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/awesome-hooks/classes/class-awesome-hooks.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/awesome-hooks/awesome-hooks.php:16
- > PHP Warning
require_once(AWESOME_HOOKS_DIRclasses/class-awesome-hooks-admin.php): failed to open stream: No such file or directory in wp-content/plugins/awesome-hooks/classes/class-awesome-hooks.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-hooks/classes/class-awesome-hooks-post.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-hooks/classes/class-awesome-hooks-theme-supports.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-hooks/classes/class-awesome-hooks-admin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/awesome-hooks/themes/class-awesome-hooks-theme-twentysixteen.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/awesome-hooks/themes/class-awesome-hooks-theme-awesomepress.php:37
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: hooks, awesome hooks, show hooks, add content hooks
awesome-hooks/awesome-hooks.php 92% from 13 tests
This is the main PHP file of "Awesome Hooks" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
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
Everything looks great! No dangerous files found in this plugin968 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 321 | 427 | 951 |
CSS | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 48 | |
▷ Static methods | 8 | 16.67% |
▷ Public methods | 47 | 97.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.08% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin