Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼145.91ms] Passed 4 tests
Analyzing server-side resources used by WordPress Mentions Légales
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 31.06 ▲7.31 |
Dashboard /wp-admin | 3.09 ▲0.03 | 39.83 ▲4.72 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 31.05 ▲1.01 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 69.14 ▼589.69 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 22.45 ▲0.33 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Mentions Légales
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲95 | 16.41 ▲0.67 | 5.12 ▼3.51 | 76.15 ▼2.70 |
Dashboard /wp-admin | 2,970 ▲74 | 6.83 ▲0.76 | 119.94 ▼11.70 | 172.16 ▼3.17 |
Posts /wp-admin/edit.php | 2,783 ▲40 | 3.02 ▼0.33 | 65.94 ▲4.67 | 142.85 ▲6.49 |
Add New Post /wp-admin/post-new.php | 2,349 ▼1,381 | 16.39 ▼2.88 | 426.43 ▼25.86 | 161.60 ▼11.03 |
Media Library /wp-admin/upload.php | 1,792 ▲40 | 6.04 ▲0.50 | 137.79 ▼1.03 | 180.91 ▼0.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/mentions-legales/mentions-legales.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/mentions-legales/admin/partials/mentions-legales-admin-form-part.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/mentions-legales/admin/partials/mentions-legales-admin-form-pro.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mentions-legales/includes/class-mentions-legales-widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: legales, site internet, mentions legales, mentions
mentions-legales/mentions-legales.php Passed 13 tests
The main PHP file in "WordPress Mentions Légales" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
Un plugin pour générer automatiquement les mentions légales de votre site.
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
No dangerous file extensions were detected7,372 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,545 | 1,600 | 6,699 |
PHP | 12 | 80 | 390 | 637 |
CSS | 4 | 3 | 11 | 36 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 20 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.67% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_highlight-soft_50_dddddd_1x100.png | 0.27KB | 0.14KB | ▼ 48.21% |
admin/css/images/ui-bg_highlight-soft_25_1274a8_1x100.png | 0.34KB | 0.18KB | ▼ 46.53% |
admin/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
admin/css/images/ui-icons_666666_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/css/images/ui-icons_ff0084_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |