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.51MB] [CPU: ▲3.61ms] Passed 4 tests
An overview of server-side resources used by Soumettre.fr
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.51 | 45.53 ▲4.95 |
Dashboard /wp-admin | 3.82 ▲0.51 | 59.29 ▲8.26 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 53.91 ▲5.63 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.54 | 89.55 ▼4.41 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 48.71 ▲11.75 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Soumettre.fr
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.41 ▲0.06 | 1.78 ▲0.08 | 45.17 ▲4.28 |
Dashboard /wp-admin | 2,200 ▲26 | 5.56 ▼0.02 | 89.07 ▼9.18 | 79.20 ▲38.23 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.99 ▼0.01 | 34.64 ▼3.38 | 33.16 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,695 ▲169 | 22.00 ▼1.62 | 680.55 ▲75.82 | 61.86 ▲9.96 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.20 ▲0.00 | 102.15 ▼21.51 | 66.74 ▲18.83 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/soumettre-fr/public/partials/soumettre-public-display.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/soumettre-fr/includes/class-soumettre-post.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/soumettre-fr/admin/partials/soumettre-admin-display.php:17
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/soumettre-fr/includes/class-soumettre-post.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/soumettre-fr/public/rest/class-soumettre-rest-route.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/soumettre-fr/includes/class-soumettre-post.php on line 8
- > 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)
There were no browser issues found
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
No tags were found
soumettre-fr/soumettrefr.php 85% from 13 tests
This is the main PHP file of "Soumettre.fr" version 2.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("soumettre-fr.php" instead of "soumettrefr.php")
- 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 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,416 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 725 | 930 | 2,993 |
CSS | 1 | 50 | 4 | 230 |
PO File | 1 | 70 | 82 | 193 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 4 | 2.25% |
▷ Public methods | 146 | 82.02% |
▷ Protected methods | 23 | 12.92% |
▷ Private methods | 9 | 5.06% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 26 | |
▷ Global constants | 26 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/soumettre-icon.png | 2.10KB | 0.34KB | ▼ 83.92% |
images/logo-soumettre-transparent.png | 27.41KB | 11.82KB | ▼ 56.89% |
images/soumettre-favicon.png | 1.35KB | 1.04KB | ▼ 22.55% |
images/logo-soumettre-450x129.png | 16.48KB | 7.05KB | ▼ 57.23% |