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.11MB] [CPU: ▲22.02ms] 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.11MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.96 ▲5.50 | 66.61 ▲26.25 |
Dashboard /wp-admin | 8.98 ▲5.64 | 74.39 ▲15.10 |
Posts /wp-admin/edit.php | 8.98 ▲5.62 | 83.70 ▲35.99 |
Add New Post /wp-admin/post-new.php | 9.57 ▲3.68 | 105.83 ▲12.71 |
Media Library /wp-admin/upload.php | 8.98 ▲5.75 | 70.04 ▲34.03 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.98 | 57.44 |
Server storage [IO: ▲5.71MB] [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: 436 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
surbma_gpga_fields |
can_compress_scripts |
theysaidso_admin_options |
fs_debug_mode |
widget_recent-posts |
db_upgraded |
fs_active_plugins |
fs_accounts |
widget_recent-comments |
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 / | 2,822 ▲76 | 14.72 ▲0.46 | 1.79 ▲0.21 | 29.95 ▼10.62 |
Dashboard /wp-admin | 2,228 ▲48 | 5.48 ▼0.18 | 83.19 ▼8.40 | 43.04 ▲3.96 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.02 ▼0.11 | 39.80 ▼1.25 | 37.24 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.03 ▼0.03 | 593.39 ▼55.54 | 54.68 ▲4.33 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.21 ▲0.04 | 94.87 ▼3.41 | 45.88 ▲2.36 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,101 | 1.68 | 24.56 | 28.20 |
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+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- fs_accounts
- can_compress_scripts
- widget_theysaidso_widget
- fs_debug_mode
- surbma_gpga_fields
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- fs_active_plugins
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 Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/shortcodes.php:3
- > 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 Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-gdpr-proof-google-analytics/pages/settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-gdpr-proof-google-analytics/admin/surbma-admin.php:17
- > 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(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 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
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/documentation.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 7
- > PHP Warning
include_once(SURBMA_GPGA_PLUGIN_DIR/pages/cookies.php): failed to open stream: No such file or directory in wp-content/plugins/surbma-gdpr-proof-google-analytics/lib/admin.php on line 6
- > PHP Fatal error
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 consent, google analytics, cookie, facebook pixel, gdpr...
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.8.2
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 plugin68,188 lines of code in 338 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 8,133 | 17,235 | 35,027 |
JavaScript | 26 | 4,683 | 256 | 11,748 |
CSS | 20 | 38 | 3,032 | 9,637 |
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 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 93.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 197 | 15.65% |
▷ Public methods | 870 | 69.10% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 372 | 29.55% |
Functions | 129 | |
▷ Named functions | 126 | 97.67% |
▷ Anonymous functions | 3 | 2.33% |
Constants | 153 | |
▷ Global constants | 106 | 69.28% |
▷ Class constants | 47 | 30.72% |
▷ Public constants | 47 | 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/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendors/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |