Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▼142.89ms] Passed 4 tests
An overview of server-side resources used by Adapta RGPD
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.65 | 26.74 ▲3.96 |
Dashboard /wp-admin | 3.72 ▲0.66 | 33.25 ▼1.86 |
Posts /wp-admin/edit.php | 3.77 ▲0.66 | 32.29 ▲4.51 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.64 | 70.58 ▼578.17 |
Media Library /wp-admin/upload.php | 3.66 ▲0.66 | 26.00 ▲5.00 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 137 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Adapta RGPD
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲107 | 15.60 ▼0.09 | 8.40 ▲3.35 | 73.27 ▼5.34 |
Dashboard /wp-admin | 2,975 ▲76 | 6.31 ▲0.18 | 112.82 ▼18.24 | 168.66 ▼7.27 |
Posts /wp-admin/edit.php | 2,783 ▲43 | 3.28 ▲0.06 | 63.24 ▼3.60 | 137.40 ▼3.07 |
Add New Post /wp-admin/post-new.php | 2,529 ▼1,206 | 16.95 ▼1.48 | 389.45 ▼34.38 | 161.79 ▼6.19 |
Media Library /wp-admin/upload.php | 1,794 ▲42 | 5.73 ▲0.19 | 139.90 ▼14.35 | 180.74 ▼15.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Loader/StringLoader.php:26
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Cache_AbstractCache' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Cache/NoopCache.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/adapta-rgpd/tests/test-base.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Exception/RuntimeException.php:15
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Cache_AbstractCache' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Cache/FilesystemCache.php:22
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/adapta-rgpd/tests/bootstrap.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/adapta-rgpd/tests/test-shortcodes.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/adapta-rgpd/tests/test-admin.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Exception/UnknownFilterException.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adapta-rgpd/adapta-rgpd.php:427
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: lopd, rgpd, privacidad, legal, cookies
adapta-rgpd/adapta-rgpd.php 92% from 13 tests
"Adapta RGPD" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin16,372 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 52 | 0 | 0 | 7,012 |
PHP | 49 | 1,111 | 3,283 | 5,382 |
PO File | 1 | 496 | 514 | 1,613 |
Mustache | 10 | 218 | 130 | 1,143 |
CSS | 13 | 207 | 33 | 1,066 |
JavaScript | 1 | 37 | 41 | 146 |
Markdown | 2 | 2 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 3 | 7.50% |
▷ Concrete classes | 37 | 92.50% |
▷ Final classes | 1 | 2.70% |
Methods | 299 | |
▷ Static methods | 9 | 3.01% |
▷ Public methods | 244 | 81.61% |
▷ Protected methods | 16 | 5.35% |
▷ Private methods | 39 | 13.04% |
Functions | 13 | |
▷ Named functions | 5 | 38.46% |
▷ Anonymous functions | 8 | 61.54% |
Constants | 66 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 66 | 100.00% |
▷ Public constants | 66 | 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
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/moderno-oscuro-columnas.png | 19.21KB | 9.58KB | ▼ 50.10% |
assets/images/moderno-claro.png | 17.53KB | 8.80KB | ▼ 49.80% |
assets/images/clasico.png | 18.85KB | 9.01KB | ▼ 52.18% |
assets/images/moderno-oscuro.png | 17.81KB | 8.63KB | ▼ 51.51% |