Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▲1.23ms] Passed 4 tests
Analyzing server-side resources used by Adapta RGPD
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.75 | 44.91 ▲7.77 |
Dashboard /wp-admin | 4.06 ▲0.76 | 56.37 ▲8.91 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 47.22 ▼5.56 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 93.85 ▼6.19 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 41.03 ▲9.78 |
Ajustes /wp-admin/admin.php?page=argpd-home | 4.18 | 40.43 |
Consentimientos /wp-admin/admin.php?page=argpd-consents | 4.18 | 34.56 |
Clave de API /wp-admin/admin.php?page=argpd-addons | 4.18 | 35.91 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 144 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Adapta RGPD
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲73 | 14.72 ▲0.38 | 1.73 ▼0.17 | 42.45 ▲1.57 |
Dashboard /wp-admin | 2,240 ▲63 | 5.68 ▼0.03 | 91.88 ▼8.65 | 40.24 ▼4.76 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.23 ▲0.24 | 38.46 ▼4.42 | 36.15 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,565 ▲36 | 23.08 ▼0.24 | 626.11 ▲19.64 | 69.92 ▲18.96 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.25 ▲0.01 | 98.02 ▼6.33 | 45.03 ▼0.56 |
Ajustes /wp-admin/admin.php?page=argpd-home | 879 | 1.72 | 23.27 | 39.75 |
Consentimientos /wp-admin/admin.php?page=argpd-consents | 888 | 1.96 | 40.45 | 35.49 |
Clave de API /wp-admin/admin.php?page=argpd-addons | 879 | 1.67 | 26.65 | 33.14 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Source' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Source/FilesystemSource.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Loader/InlineLoader.php:50
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Loader/FilesystemLoader.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Logger' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Logger/AbstractLogger.php:21
- > 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: Interface 'Mustache_Exception' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Exception/UnknownTemplateException.php:15
- > 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_Loader_FilesystemLoader' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Loader/ProductionFilesystemLoader.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Exception/UnknownHelperException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Cache' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Cache/AbstractCache.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: privacidad, legal, rgpd, cookies, lopd
adapta-rgpd/adapta-rgpd.php 92% from 13 tests
This is the main PHP file of "Adapta RGPD" version 1.3.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin17,472 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 56 | 0 | 0 | 7,368 |
PHP | 50 | 1,124 | 3,329 | 6,151 |
PO File | 1 | 497 | 517 | 1,588 |
CSS | 14 | 221 | 48 | 1,110 |
Mustache | 10 | 229 | 64 | 1,094 |
JavaScript | 2 | 43 | 71 | 151 |
Markdown | 2 | 2 | 0 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 3.27 |
▷ 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 | 312 | |
▷ Static methods | 9 | 2.88% |
▷ Public methods | 257 | 82.37% |
▷ Protected methods | 16 | 5.13% |
▷ Private methods | 39 | 12.50% |
Functions | 14 | |
▷ Named functions | 6 | 42.86% |
▷ Anonymous functions | 8 | 57.14% |
Constants | 68 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 68 | 100.00% |
▷ Public constants | 68 | 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-claro.png | 17.53KB | 8.80KB | ▼ 49.80% |
assets/images/clasico.png | 18.85KB | 9.01KB | ▼ 52.18% |
assets/images/moderno-oscuro-columnas.png | 19.21KB | 9.58KB | ▼ 50.10% |
assets/images/moderno-oscuro.png | 17.81KB | 8.63KB | ▼ 51.51% |