Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.63ms] Passed 4 tests
An overview of server-side resources used by CookieHub Wordpress Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 40.03 ▼1.40 |
Dashboard /wp-admin | 3.42 ▲0.08 | 48.06 ▼14.53 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.50 ▼0.03 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 93.32 ▼2.57 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.93 ▲0.66 |
CookieHub /wp-admin/options-general.php?page=my-setting-admin | 3.32 | 31.62 |
Server storage [IO: ▲0.28MB] [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: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by CookieHub Wordpress Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲51 | 14.33 ▲0.06 | 1.53 ▼0.10 | 43.07 ▼1.12 |
Dashboard /wp-admin | 2,200 ▲26 | 5.56 ▼0.00 | 86.42 ▼16.11 | 50.03 ▲6.49 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.02 ▲0.06 | 33.73 ▼12.13 | 53.24 ▲19.71 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.42 ▲0.31 | 607.44 ▼0.58 | 72.53 ▲20.74 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.28 ▲0.08 | 95.99 ▼5.18 | 52.82 ▲9.35 |
CookieHub /wp-admin/options-general.php?page=my-setting-admin | 919 | 2.01 | 25.77 | 55.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cookiehub/cookiehub.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cookiehub/includes/ch-admin.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookiehub/includes/ch-generate.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/cookiehub/includes/ch-install.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookiehub/includes/ch-api.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cookiehub/includes/ch-activate.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in cookiehub/assets to your readme.txt
cookiehub/cookiehub.php Passed 13 tests
The main PHP script in "CookieHub Wordpress Plugin" version 1.0.2 is automatically included on every request by WordPress
106 characters long description:
Take control effortlessly with CookieHub – GDPR-compliant solution for cookie management and compliance.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,331 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 113 | 36 | 727 |
CSS | 1 | 57 | 7 | 386 |
JavaScript | 1 | 50 | 18 | 218 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 6.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 7 | 63.64% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.22MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/cookiehub-wp-banner-bg.png | 33.75KB | 36.23KB | 0.00% |
includes/assets/dashboard.png | 0.51KB | 0.44KB | ▼ 13.52% |
includes/assets/cookiehub-wp-banner-bg_old.png | 132.59KB | 48.06KB | ▼ 63.75% |
includes/assets/no_card.png | 0.26KB | 0.25KB | ▼ 5.99% |
includes/assets/check.png | 0.18KB | 0.18KB | ▼ 2.16% |