Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.08MB] [CPU: ▼3.87ms] Passed 4 tests
Server-side resources used by CookieFox - Cookie Notice
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.75 | 48.62 ▲0.22 |
Dashboard /wp-admin | 4.53 ▲1.18 | 63.33 ▼3.76 |
Posts /wp-admin/edit.php | 4.55 ▲1.19 | 56.78 ▲3.72 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 94.56 ▼15.67 |
Media Library /wp-admin/upload.php | 4.45 ▲1.21 | 49.31 ▲11.04 |
Cookie Notice /wp-admin/options-general.php?page=cookiefox | 4.91 | 49.19 |
Server storage [IO: ▲3.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 399 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
cookiefox |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CookieFox - Cookie Notice
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 14.38 ▲0.19 | 9.72 ▲7.98 | 47.73 ▲2.95 |
Dashboard /wp-admin | 2,221 ▲44 | 5.64 ▲0.05 | 93.22 ▼4.82 | 40.93 ▼1.22 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.09 ▲0.07 | 38.31 ▲2.49 | 35.18 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 21.01 ▲2.76 | 707.37 ▲40.52 | 75.65 ▼3.36 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.26 ▲0.10 | 98.78 ▼1.93 | 45.10 ▲0.79 |
Cookie Notice /wp-admin/options-general.php?page=cookiefox | 2,436 | 4.72 | 119.55 | 50.46 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- cookiefox
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 39× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/CMB2_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/cookiefox/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: cookie, privacy, cookie notice, cookie consent, cookie banner...
cookiefox/cookiefox.php Passed 13 tests
This is the main PHP file of "CookieFox - Cookie Notice" version 2.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
A performant and accessible cookie and consent solution for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin57,077 lines of code in 250 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,487 | 18,697 | 32,793 |
PHP | 82 | 2,711 | 6,662 | 9,428 |
JSON | 3 | 0 | 0 | 6,670 |
CSS | 13 | 250 | 1,190 | 4,555 |
JavaScript | 10 | 361 | 591 | 1,434 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 3 | 249 | 0 | 768 |
XML | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 17.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 9 | 10.47% |
▷ Concrete classes | 77 | 89.53% |
▷ Final classes | 0 | 0.00% |
Methods | 659 | |
▷ Static methods | 113 | 17.15% |
▷ Public methods | 554 | 84.07% |
▷ Protected methods | 89 | 13.51% |
▷ Private methods | 16 | 2.43% |
Functions | 37 | |
▷ Named functions | 36 | 97.30% |
▷ Anonymous functions | 1 | 2.70% |
Constants | 13 | |
▷ Global constants | 7 | 53.85% |
▷ Class constants | 6 | 46.15% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |