Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.34ms] 75% from 4 tests
A check of server-side resources used by Insert Headers and Footers Code - HT Script
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,780.12ms on /wp-admin/edit.php?post_type=ihafs_script&page=ihafs_extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.88 ▼3.81 |
Dashboard /wp-admin | 3.49 ▲0.18 | 47.66 ▲0.08 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.66 ▲1.99 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 86.52 ▼7.62 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.35 ▲3.82 |
Recommendations /wp-admin/edit.php?post_type=ihafs_script&page=ihafs_extensions | 7.71 | 1,780.12 |
All Scripts /wp-admin/edit.php?post_type=ihafs_script | 3.46 | 39.14 |
Add New Script /wp-admin/post-new.php?post_type=ihafs_script | 3.88 | 52.24 |
Server storage [IO: ▲1.11MB] [DB: ▲0.69MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 143 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Insert Headers and Footers Code - HT Script
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲137 | 13.68 ▼1.13 | 1.74 ▼0.43 | 45.10 ▼5.18 |
Dashboard /wp-admin | 2,278 ▲90 | 5.31 ▲0.31 | 105.10 ▼13.11 | 38.74 ▼2.64 |
Posts /wp-admin/edit.php | 2,160 ▲71 | 2.39 ▲0.39 | 45.10 ▲9.16 | 32.25 ▼6.25 |
Add New Post /wp-admin/post-new.php | 1,576 ▲34 | 23.37 ▲5.01 | 679.22 ▲49.48 | 37.69 ▼23.01 |
Media Library /wp-admin/upload.php | 1,451 ▲60 | 4.57 ▲0.34 | 98.90 ▼3.77 | 41.88 ▼2.64 |
Recommendations /wp-admin/edit.php?post_type=ihafs_script&page=ihafs_extensions | 2,918 | 2.46 | 40.40 | 80.78 |
All Scripts /wp-admin/edit.php?post_type=ihafs_script | 1,132 | 2.52 | 35.86 | 27.43 |
Add New Script /wp-admin/post-new.php?post_type=ihafs_script | 1,949 | 5.37 | 87.38 | 44.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.69MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/insert-headers-and-footers-script/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/insert-headers-and-footers-script/admin/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/insert-headers-and-footers-script/admin/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/insert-headers-and-footers-script/admin/functions.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/insert-headers-and-footers-script/admin/cmb2/includes/CMB2_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/insert-headers-and-footers-script/admin/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/insert-headers-and-footers-script/admin/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/insert-headers-and-footers-script/init.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/insert-headers-and-footers-script/admin/cmb2/includes/helper-functions.php:131
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/insert-headers-and-footers-script/admin/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: inject code, google analytics, inject html, inject javascript, facebook pixel
insert-headers-and-footers-script/init.php 85% from 13 tests
Analyzing the main PHP file in "Insert Headers and Footers Code - HT Script" version 1.1.1
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("insert-headers-and-footers-script.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin15,242 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 63 | 2,256 | 6,270 | 7,719 |
CSS | 13 | 250 | 1,190 | 4,593 |
JavaScript | 9 | 394 | 608 | 1,551 |
Sass | 16 | 300 | 25 | 1,379 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 19.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 9 | 13.04% |
▷ Concrete classes | 60 | 86.96% |
▷ Final classes | 0 | 0.00% |
Methods | 552 | |
▷ Static methods | 92 | 16.67% |
▷ Public methods | 460 | 83.33% |
▷ Protected methods | 89 | 16.12% |
▷ Private methods | 3 | 0.54% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
32 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
(invalid) admin/recommended-plugins/assets/images/extensions/ht-menu.png | 2.85KB | 0.00KB | ▼ 100.00% |
admin/recommended-plugins/assets/images/extensions/multicurrencypro.png | 19.01KB | 9.36KB | ▼ 50.77% |
admin/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
(invalid) admin/recommended-plugins/assets/images/extensions/ht-click-to-call.png | 1.70KB | 0.00KB | ▼ 100.00% |