Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/lead-generator-by-enchantier/includes/PHP_Markdown_1.0.1o/markdown.php+193
Methods with the same name as their class will not be constructors in a future version of PHP; Markdown_Parser has a deprecated constructor
Server metrics [RAM: ▲0.02MB] [CPU: ▲2.51ms] Passed 4 tests
Analyzing server-side resources used by Générateur de leads - EnChantier
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.07 ▲3.42 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.75 ▲0.69 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.59 ▲2.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.46 ▲3.85 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.90 ▲4.84 |
S'inscrire /wp-admin/admin.php?page=EnChantier | 3.24 | 31.80 |
Lisez moi /wp-admin/admin.php?page=readme_EnChantier | 3.22 | 42.79 |
FAQ /wp-admin/admin.php?page=faq_EnChantier | 3.22 | 30.25 |
Contact EnChantier /wp-admin/admin.php?page=about_EnChantier | 3.22 | 33.54 |
CGU /wp-admin/admin.php?page=CGU_EnChantier | 3.28 | 28.18 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Générateur de leads - EnChantier: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲111 | 13.20 ▼1.17 | 1.67 ▲0.14 | 43.64 ▲2.70 |
Dashboard /wp-admin | 2,260 ▲75 | 5.83 ▼0.01 | 98.44 ▼1.79 | 41.30 ▼0.57 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.04 ▲0.04 | 34.31 ▼2.52 | 36.71 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,583 ▲55 | 22.97 ▲4.57 | 669.46 ▲58.52 | 65.38 ▲11.65 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.16 ▼0.01 | 101.50 ▼3.46 | 47.24 ▲2.03 |
S'inscrire /wp-admin/admin.php?page=EnChantier | 893 | 1.71 | 25.30 | 35.45 |
Lisez moi /wp-admin/admin.php?page=readme_EnChantier | 863 | 2.06 | 24.48 | 28.79 |
FAQ /wp-admin/admin.php?page=faq_EnChantier | 907 | 2.02 | 22.81 | 35.56 |
Contact EnChantier /wp-admin/admin.php?page=about_EnChantier | 830 | 2.02 | 25.38 | 27.71 |
CGU /wp-admin/admin.php?page=CGU_EnChantier | 1,080 | 2.02 | 21.52 | 24.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lead-generator-by-enchantier/includes/init.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lead-generator-by-enchantier/includes/widget.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lead-generator-by-enchantier/includes/init.php on line 10
- > PHP Warning
require(CD_PLUGIN_PATHincludes/api.client.inc.php): failed to open stream: No such file or directory in wp-content/plugins/lead-generator-by-enchantier/includes/key_form.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lead-generator-by-enchantier/includes/register_form.php:13
- > PHP Warning
include_once(ABSPATH/wp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/lead-generator-by-enchantier/includes/init.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/lead-generator-by-enchantier/includes/setup_form.php:24
- > PHP Warning
Use of undefined constant CD_PLUGIN_PATH - assumed 'CD_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lead-generator-by-enchantier/includes/key_form.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lead-generator-by-enchantier/lead_generator_enchantier.php:12
- > PHP Warning
include_once(): Failed opening 'ABSPATH/wp-admin/includes/file.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/lead-generator-by-enchantier/includes/init.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== lead-generator-by-enchantier ===
) - Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
lead-generator-by-enchantier/lead_generator_enchantier.php 92% from 13 tests
The principal PHP file in "Générateur de leads - EnChantier" v. 1.1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lead-generator-by-enchantier.php" instead of "lead_generator_enchantier.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,385 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 328 | 529 | 1,567 |
JSON | 1 | 0 | 0 | 652 |
Markdown | 4 | 113 | 0 | 157 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 16.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 82 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 4.65% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.84MB with 0.57MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/image002.png | 3.61KB | 2.20KB | ▼ 39.08% |
img/5.exemple-widget-marque-blanche.png | 63.02KB | 19.56KB | ▼ 68.96% |
img/4.exemple-widget-partenaire.png | 791.81KB | 28.66KB | ▼ 96.38% |