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 gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼141.55ms] Passed 4 tests
A check of server-side resources used by GDPR Cookie Notice
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.09 | 37.00 ▲5.01 |
Dashboard /wp-admin | 3.14 ▲0.09 | 39.52 ▲3.28 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 44.81 ▲2.76 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 91.48 ▼566.04 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 32.45 ▼6.18 |
GDPR Cookie Notice /wp-admin/options-general.php?page=gdprcn | 3.06 | 29.02 |
Server storage [IO: ▲0.03MB] [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: 18 new files
Database: no new tables, 2 new options
New WordPress options |
---|
gdprcn_options |
gdprcn_version |
Browser metrics Passed 4 tests
Checking browser requirements for GDPR Cookie Notice
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,809 ▲213 | 16.30 ▲0.79 | 13.96 ▲5.75 | 50.04 ▲3.92 |
Dashboard /wp-admin | 2,972 ▲38 | 6.04 ▲0.09 | 138.33 ▼11.05 | 108.03 ▼18.01 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.00 | 67.73 ▲4.64 | 83.80 ▼8.37 |
Add New Post /wp-admin/post-new.php | 1,607 ▲107 | 18.82 ▲0.25 | 368.24 ▲5.84 | 116.81 ▲15.30 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.03 ▼0.01 | 142.95 ▼2.68 | 118.55 ▲8.76 |
GDPR Cookie Notice /wp-admin/options-general.php?page=gdprcn | 1,118 | 2.09 | 62.50 | 85.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 2 options in the database
- gdprcn_version
- gdprcn_options
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gdpr-cookie-notice/views/admin_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gdpr-cookie-notice/gdpr-cookie-notice.php:19
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: cookie consent, privacy, compliance, gdpr, privacy directive...
gdpr-cookie-notice/gdpr-cookie-notice.php Passed 13 tests
Analyzing the main PHP file in "GDPR Cookie Notice" version 1.2.0
65 characters long description:
GDPR cookie notice notify your users that your site uses cookies.
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
Everything looks great! No dangerous files found in this plugin641 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 131 | 193 | 549 |
CSS | 1 | 9 | 10 | 41 |
JavaScript | 1 | 2 | 7 | 33 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 37 | 97.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.63% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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