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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.33ms] Passed 4 tests
Analyzing server-side resources used by Insert Html Snippet
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 40.72 ▲2.71 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.31 ▲3.83 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.64 ▲1.66 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 82.18 ▼5.75 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.52 ▲0.05 |
HTML Snippets /wp-admin/admin.php?page=insert-html-snippet-manage | 3.37 | 34.60 |
About /wp-admin/admin.php?page=insert-html-snippet-about | 3.33 | 33.69 |
Suggest a Feature /wp-admin/admin.php?page=insert-html-snippet-suggest-features | 3.34 | 31.38 |
Settings /wp-admin/admin.php?page=insert-html-snippet-settings | 3.31 | 31.86 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_xyz_ihs_short_code |
New WordPress options |
---|
xyz_ihs_dismiss |
db_upgraded |
xyz_ihs_limit |
can_compress_scripts |
xyz_ihs_sort_order |
xyz_ihs_premium_version_ads |
widget_recent-comments |
xyz_credit_link |
widget_xyz_insert_html_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Insert Html Snippet
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲41 | 14.35 ▲0.00 | 1.64 ▼0.11 | 47.23 ▲6.43 |
Dashboard /wp-admin | 2,218 ▲38 | 5.79 ▲0.11 | 94.96 ▲11.13 | 78.61 ▲39.02 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.03 ▲0.05 | 36.23 ▲1.96 | 31.33 ▼5.43 |
Add New Post /wp-admin/post-new.php | 1,712 ▲181 | 22.10 ▼1.03 | 727.62 ▲46.89 | 56.64 ▼0.72 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.28 ▲0.09 | 92.67 ▼23.47 | 74.84 ▲26.48 |
HTML Snippets /wp-admin/admin.php?page=insert-html-snippet-manage | 1,222 | 1.71 | 25.23 | 47.03 |
About /wp-admin/admin.php?page=insert-html-snippet-about | 1,522 | 1.67 | 23.19 | 38.69 |
Suggest a Feature /wp-admin/admin.php?page=insert-html-snippet-suggest-features | 1,123 | 1.70 | 25.03 | 31.77 |
Settings /wp-admin/admin.php?page=insert-html-snippet-settings | 1,257 | 1.83 | 24.24 | 32.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- xyz_ihs_premium_version_ads
- xyz_credit_link
- widget_xyz_insert_html_widget
- xyz_ihs_dismiss
- db_upgraded
- widget_recent-comments
- 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 | 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/insert-html-snippet/admin/admin-notices.php:67
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
insert-html-snippet/insert-html-snippet.php 92% from 13 tests
The entry point to "Insert Html Snippet" version 1.3.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 242 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
Good job! No executable or dangerous file extensions detected2,308 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 311 | 154 | 1,798 |
CSS | 1 | 143 | 3 | 498 |
JavaScript | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 0.51KB | 0.53KB | 0.00% |
images/twitter.png | 0.98KB | 0.85KB | ▼ 13.70% |
images/orange_buynow.png | 4.92KB | 2.67KB | ▼ 45.76% |
images/edit.png | 3.18KB | 2.07KB | ▼ 34.91% |
images/new_star.png | 4.65KB | 1.93KB | ▼ 58.47% |