Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼5.99ms] 75% from 4 tests
This is a short check of server-side resources used by GDPR Cookie Consent by Supsystic
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 830.08ms on /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=overview)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 46.11 ▲4.74 |
Dashboard /wp-admin | 3.50 ▲0.15 | 50.25 ▼8.86 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 50.51 ▼5.81 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 80.28 ▼12.70 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.30 ▲3.42 |
Settings /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=gdpr-settings | 3.67 | 37.00 |
Overview /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=overview | 3.76 | 830.08 |
GDPR Compliance by Supsystic /wp-admin/admin.php?page=gdpr-compliance-by-supsystic | 3.63 | 42.62 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 135 new files
Database: no new tables, 10 new options
New WordPress options |
---|
gdprsup_plugin_activation_errors |
widget_recent-comments |
widget_recent-posts |
gdprsup_opts_data |
widget_theysaidso_widget |
wp_gdprsup_db_version |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
wp_gdprsup_db_installed |
Browser metrics Passed 4 tests
GDPR Cookie Consent by Supsystic: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,051 ▲290 | 13.70 ▼0.65 | 20.34 ▲18.82 | 46.75 ▲6.64 |
Dashboard /wp-admin | 2,230 ▲50 | 5.66 ▲0.08 | 94.94 ▲7.48 | 41.80 ▲2.52 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.02 ▲0.01 | 32.91 ▼1.02 | 35.18 ▼5.52 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.28 ▲0.20 | 684.32 ▲15.40 | 65.95 ▲16.04 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.20 ▲0.03 | 99.44 ▼4.43 | 41.29 ▼2.45 |
Settings /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=gdpr-settings | 4,271 | 10.64 | 295.22 | 127.71 |
Overview /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=overview | 2,594 | 17.29 | 512.48 | 92.22 |
GDPR Compliance by Supsystic /wp-admin/admin.php?page=gdpr-compliance-by-supsystic | 4,268 | 10.73 | 294.49 | 120.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- gdprsup_plugin_activation_errors
- gdprsup_opts_data
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gdpr-compliance-by-supsystic
- > Notice in wp-content/plugins/gdpr-compliance-by-supsystic/modules/options/views/tpl/optionsAdminPage.php+45
Undefined property: optionsViewGdprsup::$mainLink
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 53× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'baseObjectGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/classes/model.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gdpr-compliance-by-supsystic/modules/gdpr/views/tpl/gdprAgreementAndScripts.php:3
- > PHP Fatal error
Uncaught Error: Class 'controllerGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/modules/mail/controller.php:2
- > PHP Warning
Use of undefined constant GDPRSUP_PLUG_NAME - assumed 'GDPRSUP_PLUG_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpr-compliance-by-supsystic/modules/supsystic_promo/views/tpl/overviewTabContent.php on line 3
- > PHP Warning
Use of undefined constant GDPRSUP_WP_PLUGIN_NAME - assumed 'GDPRSUP_WP_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpr-compliance-by-supsystic/modules/pages/views/tpl/deactivatePage.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'modelGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/modules/mail/models/mail.php:2
- > PHP Fatal error
Uncaught Error: Class 'moduleGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/modules/adminmenu/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'controllerGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/modules/supsystic_promo/controller.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gdpr-compliance-by-supsystic/config.php:23
- > PHP Fatal error
Uncaught Error: Class 'modelGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/modules/gdpr/models/gdpr.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gdpr-compliance-by-supsystic
- > Network (severe)
http://supsystic-42d7.kxcdn.com/lib/tooltipster/tooltipster.css?ver=2.1.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gdpr-compliance-by-supsystic
- > Network (severe)
http://supsystic-42d7.kxcdn.com/lib/chosen/chosen.min.css?ver=2.1.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gdpr-compliance-by-supsystic
- > Network (severe)
http://supsystic-42d7.kxcdn.com/lib/tooltipster/jquery.tooltipster.min.js?ver=2.1.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gdpr-compliance-by-supsystic
- > Network (severe)
http://supsystic-42d7.kxcdn.com/lib/chosen/chosen.jquery.min.js?ver=2.1.2 - Failed to load resource: net::ERR_CONNECTION_RESET
- > GET request to /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=overview
- > Network (severe)
http://supsystic-42d7.kxcdn.com/js/jquery.slimscroll.js?ver=2.1.2 - Failed to load resource: net::ERR_CONNECTION_RESET
- > GET request to /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=overview
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).slimScroll is not a function" "TypeError: jQuery(...).slimScroll is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/gdpr-compliance-by-supsystic/modules/supsystic_promo/js/admin.overview.js?ver=2.1.2:14:45)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=overview
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).slimScroll is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: cookie consent, gdpr, cookie popup, gdpr compliance, cookie notification...
gdpr-compliance-by-supsystic/gdprsup.php 92% from 13 tests
This is the main PHP file of "GDPR Cookie Consent by Supsystic" version 2.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("gdpr-compliance-by-supsystic.php" instead of "gdprsup.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin11,954 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 244 | 1,112 | 7,772 |
CSS | 18 | 127 | 167 | 2,179 |
JavaScript | 14 | 46 | 213 | 2,003 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 24.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 7 | 12.73% |
▷ Concrete classes | 48 | 87.27% |
▷ Final classes | 0 | 0.00% |
Methods | 670 | |
▷ Static methods | 251 | 37.46% |
▷ Public methods | 613 | 91.49% |
▷ Protected methods | 40 | 5.97% |
▷ Private methods | 17 | 2.54% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 69 | |
▷ Global constants | 64 | 92.75% |
▷ Class constants | 5 | 7.25% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 0.37MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/supsystic_promo/img/overview-03.png | 258.26KB | 78.45KB | ▼ 69.62% |
css/images/minimal.png | 2.23KB | 1.44KB | ▼ 35.45% |
css/images/ui-icons_f29a00_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-bg_highlight-hard_15_888888_1x100.png | 0.25KB | 0.14KB | ▼ 43.82% |
css/images/ui-icons_c98000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |