Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.41ms] Passed 4 tests
Server-side resources used by LH Cookieless Domain
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.05 | 27.09 ▼16.01 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.81 ▼1.48 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.21 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.26 ▼9.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.31 ▼2.71 |
Cookieless Domain /wp-admin/options-general.php?page=lh-cookieless-domain/lh-cookieless-domain.php | 3.22 | 30.11 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for LH Cookieless Domain
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,774 ▼12 | 14.31 ▼0.05 | 1.56 ▼0.32 | 12.47 ▼32.40 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▼0.02 | 93.34 ▼0.10 | 42.03 ▲7.18 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.06 | 40.71 ▲4.26 | 34.58 ▼5.53 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.33 ▲0.48 | 591.64 ▼51.17 | 70.72 ▲10.68 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.20 ▼0.03 | 101.84 ▼14.59 | 46.97 ▼1.45 |
Cookieless Domain /wp-admin/options-general.php?page=lh-cookieless-domain/lh-cookieless-domain.php | 784 | 2.00 | 25.39 | 25.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=lh-cookieless-domain/lh-cookieless-domain.php
- > Notice in wp-content/plugins/lh-cookieless-domain/partials/option-settings.php+2
Undefined property: LH_Cookieless_domain_plugin::$hidden_field_name
- > GET request to /wp-admin/options-general.php?page=lh-cookieless-domain/lh-cookieless-domain.php
- > Notice in wp-content/plugins/lh-cookieless-domain/partials/option-settings.php+7
Trying to access array offset on value of type bool
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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-cookieless-domain/partials/option-settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
Attributes that require attention:
- Requires at least: The plugin version is formatted incorrectly
lh-cookieless-domain/lh-cookieless-domain.php 92% from 13 tests
The main PHP script in "LH Cookieless Domain" version 1.02 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin146 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 141 | 23 | 146 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected