Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.74ms] Passed 4 tests
Server-side resources used by Export vers Prepafacile pour Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 44.23 ▲3.93 |
Dashboard /wp-admin | 3.53 ▲0.19 | 48.90 ▲0.20 |
Posts /wp-admin/edit.php | 3.65 ▲0.25 | 51.78 ▼4.64 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.19 | 82.69 ▼12.24 |
Media Library /wp-admin/upload.php | 3.46 ▲0.19 | 36.84 ▲1.74 |
Settings /wp-admin/admin.php?page=woo2prepafacile-settings | 3.40 | 34.75 |
Export vers Prepafacile /wp-admin/admin.php?page=woo2prepafacile-export | 3.42 | 35.37 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_woo2prepafacile |
New WordPress options |
---|
db_upgraded |
recovery_mode_email_last_sent |
widget_recent-posts |
PREPAFACILE_STATE_EXPORT |
theysaidso_admin_options |
PREPAFACILE_STATE_ENVOIE |
PREPAFACILE_REFEXP |
can_compress_scripts |
widget_recent-comments |
PREPAFACILE_CONTRAT |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Export vers Prepafacile pour Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 14.18 ▼0.17 | 1.78 ▼0.61 | 44.04 ▼0.34 |
Dashboard /wp-admin | 2,235 ▲58 | 5.55 ▼0.12 | 83.46 ▼4.74 | 40.64 ▼4.44 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.00 ▲0.06 | 37.21 ▼3.43 | 36.98 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,561 ▲21 | 23.19 ▼0.14 | 672.92 ▼70.89 | 53.81 ▼2.36 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.23 ▼0.09 | 100.19 ▼2.26 | 45.09 ▼1.51 |
Settings /wp-admin/admin.php?page=woo2prepafacile-settings | 722 | 1.54 | 8.41 | 25.82 |
Export vers Prepafacile /wp-admin/admin.php?page=woo2prepafacile-export | 985 | 1.81 | 23.38 | 35.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_woo2prepafacile
- Zombie WordPress options were found after uninstall: 13 options
- widget_theysaidso_widget
- widget_recent-posts
- recovery_mode_email_last_sent
- can_compress_scripts
- PREPAFACILE_DB_VERSION
- db_upgraded
- theysaidso_admin_options
- PREPAFACILE_STATE_ENVOIE
- WOO2PREPAFACILE_VERSION
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=woo2prepafacile-settings
- > Error in wp-content/plugins/export-vers-prepafacile-pour-woocommerce/woo2prepafacile.php+265
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/export-vers-prepafacile-pour-woocommerce/woo2prepafacile.php:265
Stack trace:
#0 wp-includes/class-wp-hook.php(310): WOO2PrepafacileSettings->woo2prepafacile_settings_create_admin_page()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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 fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/export-vers-prepafacile-pour-woocommerce/languages/js-translate.php
- > /wp-content/plugins/export-vers-prepafacile-pour-woocommerce/controllers/admin/woo2prepafacile-admin-installdb.php
- > /wp-content/plugins/export-vers-prepafacile-pour-woocommerce/controllers/admin/woo2prepafacile-admin-ajax.php
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 issues were 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
5 plugin tags: prepafacile, la poste, courrier suivi, lettre suivi, woocommerce
export-vers-prepafacile-pour-woocommerce/woo2prepafacile.php 85% from 13 tests
The main file in "Export vers Prepafacile pour Woocommerce" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("export-vers-prepafacile-pour-woocommerce.php" instead of "woo2prepafacile.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
Good job! No executable or dangerous file extensions detected1,113 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 149 | 146 | 804 |
JavaScript | 1 | 32 | 14 | 125 |
PO File | 1 | 37 | 38 | 104 |
CSS | 1 | 1 | 0 | 80 |
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.15 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
There were not PNG files found in your plugin