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
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼0.95ms] Passed 4 tests
An overview of server-side resources used by AdSimple® Consent Manager for WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 38.97 ▲2.63 |
Dashboard /wp-admin | 3.67 ▲0.33 | 55.59 ▼1.79 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 49.03 ▲3.35 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 89.38 ▼8.00 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 42.91 ▲10.23 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for AdSimple® Consent Manager for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.58 ▼0.64 | 4.43 ▲2.57 | 35.46 ▼6.61 |
Dashboard /wp-admin | 2,247 ▲62 | 6.07 ▲0.99 | 109.78 ▲9.73 | 77.94 ▲34.78 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.03 ▲0.03 | 35.81 ▼1.99 | 37.79 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,681 ▲167 | 22.49 ▲4.86 | 676.53 ▲33.38 | 47.03 ▼11.93 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.25 ▲0.06 | 104.03 ▼3.29 | 51.22 ▲3.92 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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 items
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AS_CM_Classes_Controller' not found in wp-content/plugins/adsimple-cookie-manager-for-wp/includes/controllers/shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Class 'AS_CM_Classes_Controller' not found in wp-content/plugins/adsimple-cookie-manager-for-wp/includes/controllers/extensions/rocket.php:3
- > PHP Fatal error
Uncaught Error: Class 'AS_CM_Classes_Controller' not found in wp-content/plugins/adsimple-cookie-manager-for-wp/includes/controllers/popup.php:3
- > PHP Fatal error
Uncaught Error: Class 'AS_CM_Classes_Controller' not found in wp-content/plugins/adsimple-cookie-manager-for-wp/includes/services/locale.php:3
- > PHP Fatal error
Uncaught Error: Class 'AS_CM_Classes_Controller' not found in wp-content/plugins/adsimple-cookie-manager-for-wp/includes/controllers/after_activate.php:3
- > PHP Fatal error
Uncaught Error: Class 'AS_CM_Classes_Controller' not found in wp-content/plugins/adsimple-cookie-manager-for-wp/includes/services/rest.php:3
- > PHP Fatal error
Uncaught Error: Class 'AS_CM_Classes_Controller' not found in wp-content/plugins/adsimple-cookie-manager-for-wp/includes/controllers/design.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adsimple-cookie-manager-for-wp/adsimple-cookie-manager.php:12
- > PHP Fatal error
Uncaught Error: Class 'AS_CM_Classes_Controller' not found in wp-content/plugins/adsimple-cookie-manager-for-wp/includes/controllers/options.php:3
- > PHP Fatal error
Uncaught Error: Class 'AS_CM_Classes_Item' not found in wp-content/plugins/adsimple-cookie-manager-for-wp/includes/services/cache/loader.php:3
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: cookie, manager, blocking, dsgvo, hinweis...
adsimple-cookie-manager-for-wp/adsimple-cookie-manager.php 85% from 13 tests
The main file in "AdSimple® Consent Manager for WP" v. 2.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("adsimple-cookie-manager-for-wp.php" instead of "adsimple-cookie-manager.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
There were no executable files found in this plugin2,372 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 480 | 1,468 | 1,629 |
CSS | 2 | 93 | 7 | 538 |
PO File | 1 | 38 | 38 | 135 |
JavaScript | 1 | 10 | 2 | 70 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.05 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 168 | |
▷ Static methods | 120 | 71.43% |
▷ Public methods | 144 | 85.71% |
▷ Protected methods | 12 | 7.14% |
▷ Private methods | 12 | 7.14% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 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
4 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dashboard/images/tinymce.png | 1.12KB | 0.60KB | ▼ 46.42% |
assets/dashboard/images/background.png | 182.73KB | 126.31KB | ▼ 30.88% |
assets/dashboard/images/logo.png | 4.41KB | 2.99KB | ▼ 32.28% |
assets/dashboard/images/icon.png | 0.90KB | 0.58KB | ▼ 35.22% |