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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼12.24ms] Passed 4 tests
This is a short check of server-side resources used by Mentions Legales Par Webdeclic
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.08 ▼3.08 |
Dashboard /wp-admin | 3.37 ▲0.02 | 44.09 ▼9.43 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 43.07 ▼6.62 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.86 ▼29.83 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.46 ▲2.56 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Mentions Legales Par Webdeclic
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.76 ▲0.19 | 1.71 ▲0.12 | 43.89 ▲3.66 |
Dashboard /wp-admin | 2,211 ▲31 | 5.63 ▼0.06 | 83.73 ▼1.89 | 39.30 ▼0.56 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.97 ▼0.01 | 33.67 ▼4.59 | 34.00 ▼4.49 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.19 ▼0.38 | 668.48 ▲10.99 | 59.32 ▲9.82 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.16 ▼0.06 | 106.65 ▲8.06 | 44.14 ▲0.16 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mentions-legales-par-webdeclic/public/templates/shortcode-mentions-legales.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
6 plugin tags: gdpr, rgpd, mentions legales, site internet, legales...
mentions-legales-par-webdeclic/mentions-legales-par-webdeclic.php Passed 13 tests
The primary PHP file in "Mentions Legales Par Webdeclic" version 1.0.3 is used by WordPress to initiate all plugin functionality
133 characters long description:
Ce plugin permet de générer des mentions légales et de les afficher facilement via un shortcode en front ([wbd_mentions_legales]).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,342 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 315 | 924 | 1,248 |
CSS | 1 | 9 | 1 | 54 |
JavaScript | 1 | 8 | 1 | 24 |
JSON | 2 | 0 | 0 | 15 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 20 | 26.32% |
▷ Public methods | 69 | 90.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.21% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected