Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲3.88MB] [CPU: ▲49.57ms] Passed 4 tests
An overview of server-side resources used by Hook Timer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.01 ▲3.54 | 89.73 ▲43.49 |
Dashboard /wp-admin | 7.05 ▲3.74 | 101.17 ▲46.23 |
Posts /wp-admin/edit.php | 7.20 ▲3.85 | 92.46 ▲40.88 |
Add New Post /wp-admin/post-new.php | 12.02 ▲6.14 | 165.38 ▲67.67 |
Media Library /wp-admin/upload.php | 7.63 ▲4.40 | 103.63 ▲68.95 |
Hook Timer /wp-admin/options-general.php?page=hooktimer | 8.24 | 80.49 |
Server storage [IO: ▲0.00MB] [DB: ▲0.54MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
hooktimer_times |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Hook Timer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲48 | 14.48 ▲0.18 | 2.24 ▲0.07 | 42.99 ▼3.24 |
Dashboard /wp-admin | 2,213 ▲28 | 4.88 ▼1.03 | 103.15 ▼1.53 | 41.56 ▼4.58 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.08 | 37.47 ▼4.57 | 34.68 ▼3.35 |
Add New Post /wp-admin/post-new.php | 1,544 ▲192 | 23.52 ▲6.35 | 725.05 ▲175.43 | 57.76 ▲10.59 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.12 ▼0.05 | 110.36 ▲1.49 | 48.02 ▲3.19 |
Hook Timer /wp-admin/options-general.php?page=hooktimer | 9,076 | 1.20 | 26.69 | 106.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.43MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- hooktimer_times
- theysaidso_admin_options
- db_upgraded
- 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
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hook-timer/hook-timer.php:42
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: hooks, time, filters, action, hook...
hook-timer/hook-timer.php Passed 13 tests
The primary PHP file in "Hook Timer" version 1.0 is used by WordPress to initiate all plugin functionality
46 characters long description:
Track the time elapsed for each WordPress hook
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
Good job! No executable or dangerous file extensions detected81 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 20 | 81 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin