Benchmarks
Plugin footprint 65% 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: ▲5.15MB] [CPU: ▼163.67ms] 75% from 4 tests
An overview of server-side resources used by Surbma | GDPR Proof Cookie Consent & Notice Bar
Please have a look at the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.15MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.63 ▲5.79 | 50.52 ▲26.27 |
Dashboard /wp-admin | 8.65 ▲5.58 | 57.11 ▲13.87 |
Posts /wp-admin/edit.php | 8.65 ▲5.54 | 57.24 ▲21.45 |
Add New Post /wp-admin/post-new.php | 9.28 ▲3.84 | 94.70 ▼711.80 |
Media Library /wp-admin/upload.php | 8.65 ▲5.64 | 47.21 ▲21.80 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.65 | 43.45 |
Server storage [IO: ▲5.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 422 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_debug_mode |
fs_accounts |
surbma_gpga_fields |
fs_gdpr |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for Surbma | GDPR Proof Cookie Consent & Notice Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲114 | 16.06 ▲0.51 | 4.82 ▼0.16 | 73.15 ▼1.31 |
Dashboard /wp-admin | 2,979 ▲83 | 6.14 ▲0.12 | 116.55 ▼15.90 | 180.44 ▲10.48 |
Posts /wp-admin/edit.php | 2,789 ▲52 | 3.24 ▲0.02 | 66.45 ▲1.27 | 152.23 ▲9.63 |
Add New Post /wp-admin/post-new.php | 3,828 ▲1,502 | 18.60 ▲2.11 | 416.37 ▼1.87 | 165.93 ▲7.71 |
Media Library /wp-admin/upload.php | 1,798 ▲46 | 5.52 ▼0.03 | 153.37 ▲7.19 | 205.64 ▲21.39 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,506 | 2.45 | 53.93 | 113.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/surbma-gdpr-proof-google-analytics/vendors/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 5 options in the database
- surbma_gpga_fields
- fs_accounts
- fs_debug_mode
- fs_active_plugins
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/surbma-gdpr-proof-google-analytics/surbma-gdpr-proof-google-analytics.php
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'SURBMA_GPGA_PLUGIN_DIR/admin/surbma-admin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 3
- > PHP Warning
include_once(SURBMA_GPGA_PLUGIN_DIR/admin/surbma-admin.php): failed to open stream: No such file or directory in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 3
- > PHP Warning
include_once(): Failed opening 'SURBMA_GPGA_PLUGIN_DIR/pages/social.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 5
- > PHP Warning
Use of undefined constant SURBMA_GPGA_PLUGIN_DIR - assumed 'SURBMA_GPGA_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/shortcodes.php:10
- > PHP Warning
include_once(SURBMA_GPGA_PLUGIN_DIR/pages/social.php): failed to open stream: No such file or directory in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 5
- > PHP Warning
include_once(): Failed opening 'SURBMA_GPGA_PLUGIN_DIR/pages/settings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 4
- > PHP Warning
Use of undefined constant SURBMA_GPGA_PLUGIN_DIR - assumed 'SURBMA_GPGA_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 4
- > PHP Warning
include_once(SURBMA_GPGA_PLUGIN_DIR/pages/settings.php): failed to open stream: No such file or directory in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/social.php:27
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: cookie compliance, cookie, facebook pixel, cookie consent, google analytics...
surbma-gdpr-proof-google-analytics/surbma-gdpr-proof-google-analytics.php 92% from 13 tests
Analyzing the main PHP file in "Surbma | GDPR Proof Cookie Consent & Notice Bar" version 17.5.3
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin65,601 lines of code in 326 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 7,406 | 16,116 | 32,439 |
JavaScript | 26 | 4,683 | 256 | 11,748 |
CSS | 18 | 38 | 3,032 | 9,638 |
LESS | 149 | 4,599 | 5,002 | 8,746 |
Markdown | 5 | 760 | 0 | 1,936 |
JSON | 3 | 22 | 0 | 1,072 |
XML | 1 | 0 | 0 | 14 |
SVG | 8 | 0 | 0 | 8 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 90.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,132 | |
▷ Static methods | 173 | 15.28% |
▷ Public methods | 792 | 69.96% |
▷ Protected methods | 15 | 1.33% |
▷ Private methods | 325 | 28.71% |
Functions | 124 | |
▷ Named functions | 124 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 131 | |
▷ Global constants | 106 | 80.92% |
▷ Class constants | 25 | 19.08% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendors/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |