Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.24ms] Passed 4 tests
A check of server-side resources used by Storefront Hooks Cutomizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 34.21 ▼4.49 |
Dashboard /wp-admin | 3.34 ▼0.01 | 43.92 ▼14.52 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.20 ▲2.27 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.79 ▼13.17 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.81 ▼0.79 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Storefront Hooks Cutomizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.02 | 1.83 ▲0.18 | 37.62 ▼1.69 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▲0.02 | 84.16 ▼10.39 | 37.12 ▼0.39 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.97 ▼0.06 | 35.31 ▼0.25 | 33.88 ▼5.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.08 ▲0.08 | 671.10 ▼36.28 | 52.16 ▼1.97 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▼0.06 | 95.44 ▼6.34 | 42.73 ▼2.69 |
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 detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: storefront, woocommerce, customizer
storefront-hooks-customizer/storefront-hooks-customizer.php Passed 13 tests
The entry point to "Storefront Hooks Cutomizer" version 1.0 is a PHP file that has certain tags in its header comment area
41 characters long description:
Hook into Storefront from the Customizer.
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
No dangerous file extensions were detected228 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 23 | 47 | 208 |
JavaScript | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin