Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▼1.97MB] [CPU: ▼58.61ms] Passed 4 tests
This is a short check of server-side resources used by WP Paypite Ecommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.58 ▼38.37 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.59 ▼54.92 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.53 ▼42.15 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.36 ▼99.00 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.77 ▼27.64 |
Ajouter nouveau /wp-admin/admin.php?page=wp-add-product-paypite-ecommerce | 2.05 | 5.49 |
Shortcode /wp-admin/admin.php?page=wp-shortcode-paypite-ecommerce | 2.05 | 6.99 |
Paramètres /wp-admin/admin.php?page=wp-settings-paypite-ecommerce | 2.05 | 5.55 |
Tous les produits /wp-admin/admin.php?page=wp-paypite-ecommerce | 2.05 | 6.48 |
FAQ /wp-admin/admin.php?page=wp-faq-paypite-ecommerce | 2.05 | 5.72 |
Support /wp-admin/admin.php?page=wp-support-paypite-ecommerce | 2.05 | 5.96 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_paypite_products |
wp_paypite_transactions |
wp_paypite_settings |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Paypite Ecommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲126 | 13.67 ▼0.73 | 1.88 ▼0.01 | 39.27 ▼5.97 |
Dashboard /wp-admin | 2,255 ▲64 | 5.85 ▲0.95 | 109.99 ▲1.15 | 45.21 ▼0.95 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.03 ▼0.02 | 39.04 ▲0.78 | 45.40 ▲10.50 |
Add New Post /wp-admin/post-new.php | 1,407 ▼121 | 20.73 ▼2.42 | 600.24 ▼71.64 | 38.74 ▼20.27 |
Media Library /wp-admin/upload.php | 1,443 ▲55 | 4.22 ▲0.03 | 101.26 ▲5.31 | 45.44 ▼0.97 |
Ajouter nouveau /wp-admin/admin.php?page=wp-add-product-paypite-ecommerce | 861 | 2.11 | 28.01 | 34.23 |
Shortcode /wp-admin/admin.php?page=wp-shortcode-paypite-ecommerce | 861 | 2.12 | 27.42 | 36.51 |
Paramètres /wp-admin/admin.php?page=wp-settings-paypite-ecommerce | 853 | 2.03 | 26.45 | 34.09 |
Tous les produits /wp-admin/admin.php?page=wp-paypite-ecommerce | 858 | 2.12 | 23.03 | 33.42 |
FAQ /wp-admin/admin.php?page=wp-faq-paypite-ecommerce | 858 | 2.12 | 26.83 | 35.03 |
Support /wp-admin/admin.php?page=wp-support-paypite-ecommerce | 861 | 2.15 | 26.56 | 34.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Zombie tables were found after uninstall: 3 tables
- wp_paypite_products
- wp_paypite_settings
- wp_paypite_transactions
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 62 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-support-paypite-ecommerce
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-support-paypite-ecommerce
- > Warning in wp-content/plugins/wp-paypite-ecommerce/classes/Manager.php+31
Use of undefined constant FORM_VALIDATION_ERROR - assumed 'FORM_VALIDATION_ERROR' (this will throw an Error in a future version of PHP)
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-support-paypite-ecommerce
- > Warning in wp-content/plugins/wp-paypite-ecommerce/classes/Manager.php+32
Use of undefined constant WP_PAYPITE_ECOMMERCE_PLUGIN_URL - assumed 'WP_PAYPITE_ECOMMERCE_PLUGIN_URL' (this will throw an Error in a future version of PHP)
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-support-paypite-ecommerce
- > Warning in wp-content/plugins/wp-paypite-ecommerce/classes/Manager.php+33
Use of undefined constant CRYPTO_HELP - assumed 'CRYPTO_HELP' (this will throw an Error in a future version of PHP)
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-support-paypite-ecommerce
- > Warning in wp-content/plugins/wp-paypite-ecommerce/classes/Manager.php+34
Use of undefined constant CALLBACK_URL_HELP - assumed 'CALLBACK_URL_HELP' (this will throw an Error in a future version of PHP)
SRP 0% 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
Please fix the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-paypite-ecommerce/views/admin/faq.php
- > /wp-content/plugins/wp-paypite-ecommerce/views/admin/list.php
- > /wp-content/plugins/wp-paypite-ecommerce/views/admin/shortcode.php
- > /wp-content/plugins/wp-paypite-ecommerce/views/admin/support.php
- 24× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: product in wp-content/plugins/wp-paypite-ecommerce/views/front-end/output.php on line 76
- > PHP Warning
Use of undefined constant CALLBACK_URL_HELP - assumed 'CALLBACK_URL_HELP' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-paypite-ecommerce/views/admin/list.php on line 10
- > PHP Notice
Undefined variable: product in wp-content/plugins/wp-paypite-ecommerce/views/front-end/output.php on line 73
- > PHP Warning
Use of undefined constant WP_PAYPITE_ECOMMERCE_PLUGIN_URL - assumed 'WP_PAYPITE_ECOMMERCE_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-paypite-ecommerce/views/admin/add.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'WP_PAYPITE_ECOMMERCE_PLUGIN_URLviews/admin/form.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-paypite-ecommerce/views/admin/update.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'WP_PAYPITE_ECOMMERCE_PLUGIN_URLviews/admin/form.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-paypite-ecommerce/views/admin/add.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-paypite-ecommerce/views/admin/confirm-deletion.php:7
- > PHP Warning
Use of undefined constant CRYPTO_HELP - assumed 'CRYPTO_HELP' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-paypite-ecommerce/views/admin/list.php on line 8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-paypite-ecommerce/views/front-end/output.php:77
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-paypite-ecommerce/views/admin/form.php:35
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: paypite, ecommerce, vente en ligne paypite
wp-paypite-ecommerce/wp-paypite-ecommerce.php Passed 13 tests
"WP Paypite Ecommerce" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
Vendez en ligne vos produits et services avec Paypite.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,038 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 145 | 67 | 758 |
CSS | 1 | 71 | 20 | 274 |
JavaScript | 1 | 0 | 1 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 3.87KB | 3.74KB | ▼ 3.33% |