Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.35MB] [CPU: ▲6.46ms] Passed 4 tests
Server-side resources used by iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.84 ▲1.38 | 49.35 ▲6.90 |
Dashboard /wp-admin | 4.64 ▲1.34 | 53.95 ▲2.53 |
Posts /wp-admin/edit.php | 4.75 ▲1.40 | 55.03 ▲9.76 |
Add New Post /wp-admin/post-new.php | 7.22 ▲1.34 | 95.67 ▲6.63 |
Media Library /wp-admin/upload.php | 4.56 ▲1.33 | 45.72 ▲13.88 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 127 new files
Database: no new tables, 11 new options
New WordPress options |
---|
iubenda_activated_products |
iubenda_radar_api_configuration |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
iubenda_cookie_law_version |
widget_recent-comments |
can_compress_scripts |
widget_iubenda_legal_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲75 | 14.35 ▼0.30 | 1.71 ▲0.06 | 44.21 ▲1.09 |
Dashboard /wp-admin | 2,245 ▲65 | 5.60 ▼0.03 | 96.05 ▼3.61 | 42.64 ▼0.36 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.01 ▲0.07 | 37.96 ▲0.25 | 30.94 ▼3.22 |
Add New Post /wp-admin/post-new.php | 6,214 ▲4,688 | 19.06 ▼4.03 | 921.48 ▲217.71 | 52.59 ▼0.89 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.16 ▼0.01 | 99.95 ▲2.53 | 40.59 ▼1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- widget_theysaidso_widget
- iubenda_global_options
- widget_iubenda_legal_widget
- iubenda_cookie_law_version
- can_compress_scripts
- iubenda_activated_products
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/iubenda-cookie-law-solution/views/partials/auto-detect-forms.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Donate link: Please fix this invalid url: ""
iubenda-cookie-law-solution/iubenda_cookie_solution.php 77% from 13 tests
"iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more" version 3.7.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 327 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("iubenda-cookie-law-solution.php" instead of "iubenda_cookie_solution.php")
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
No dangerous file extensions were detected18,805 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 2,150 | 3,630 | 10,430 |
PO File | 6 | 1,416 | 2,142 | 4,728 |
CSS | 3 | 424 | 8 | 2,344 |
JavaScript | 5 | 180 | 113 | 1,124 |
Markdown | 1 | 50 | 0 | 133 |
SVG | 30 | 0 | 0 | 30 |
JSON | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 54.90 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 258.00 |
Average method complexity | 5.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 1 | 3.45% |
▷ Concrete classes | 28 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 372 | |
▷ Static methods | 7 | 1.88% |
▷ Public methods | 283 | 76.08% |
▷ Protected methods | 26 | 6.99% |
▷ Private methods | 63 | 16.94% |
Functions | 19 | |
▷ Named functions | 15 | 78.95% |
▷ Anonymous functions | 4 | 21.05% |
Constants | 37 | |
▷ Global constants | 26 | 70.27% |
▷ Class constants | 11 | 29.73% |
▷ Public constants | 11 | 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
No PNG images were found in this plugin