Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/options/db_options.class.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; wpaybox_db_option has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼52.53ms] Passed 4 tests
This is a short check of server-side resources used by wppaybox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.07 ▼32.41 |
Dashboard /wp-admin | 2.08 ▼1.26 | 7.15 ▼52.21 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.17 ▼38.22 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 8.16 ▼87.26 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 6.32 ▼28.70 |
Formulaires /wp-admin/admin.php?page=wpaybox_forms | 2.08 | 6.72 |
Paybox /wp-admin/options-general.php?page=wpaybox_options | 2.08 | 7.32 |
Offres /wp-admin/admin.php?page=wpaybox_offers | 2.08 | 7.37 |
Commandes /wp-admin/admin.php?page=wpaybox_orders | 2.08 | 6.81 |
Server storage [IO: ▲1.11MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_wppaybox__forms |
wp_wppaybox__orders |
wp_wppaybox__offers |
wp_wppaybox__forms_offers_link |
New WordPress options |
---|
theysaidso_admin_options |
wpaybox_store_urloption |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
wpaybox_store_mainoption |
widget_theysaidso_widget |
wpaybox_db_option |
Browser metrics Passed 4 tests
An overview of browser requirements for wppaybox
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲173 | 13.85 ▼0.50 | 8.19 ▲6.48 | 44.15 ▼4.04 |
Dashboard /wp-admin | 2,238 ▲58 | 5.62 ▼0.07 | 81.99 ▼10.14 | 39.15 ▼10.42 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.01 ▲0.02 | 35.90 ▲1.37 | 33.17 ▼3.86 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.38 ▲0.32 | 596.40 ▼53.29 | 49.66 ▼3.87 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.20 ▼0.03 | 107.74 ▲14.89 | 48.56 ▲3.61 |
Formulaires /wp-admin/admin.php?page=wpaybox_forms | 857 | 1.86 | 24.31 | 24.72 |
Paybox /wp-admin/options-general.php?page=wpaybox_options | 944 | 1.86 | 22.35 | 33.42 |
Offres /wp-admin/admin.php?page=wpaybox_offers | 881 | 1.89 | 26.78 | 25.14 |
Commandes /wp-admin/admin.php?page=wpaybox_orders | 867 | 1.89 | 25.06 | 24.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/options/db_options.class.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; wpaybox_db_option has a deprecated constructor
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_wppaybox__forms_offers_link
- wp_wppaybox__orders
- wp_wppaybox__forms
- wp_wppaybox__offers
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- wpaybox_store_mainoption
- wpaybox_db_option
- wpaybox_store_urloption
- theysaidso_admin_options
- db_upgraded
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
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/options/db_options.class.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; wpaybox_db_option has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpaybox_init::wpaybox_plugin_load() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/init.class.php+39
Non-static method wpaybox_database::wpaybox_db_update() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpaybox_init::wpaybox_front_css() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpaybox_init::wpaybox_front_js() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpaybox_init::wpaybox_menu() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/init.class.php+72
Non-static method wpaybox_orders::pageTitle() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/init.class.php+73
Non-static method wpaybox_payment_form::pageTitle() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/init.class.php+74
Non-static method wpaybox_offers::pageTitle() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpaybox_init::wpaybox_admin_css() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpaybox_init::wpaybox_admin_js() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpaybox_display::displayPage() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/display.class.php+93
Non-static method wpaybox_tools::varSanitizer() should not be called statically
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/display.class.php+141
Non-static method wpaybox_display::getPageIconInformation() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > 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.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_offers
- > Notice in wp-content/plugins/wppaybox/includes/librairies/offers.class.php+295
Undefined variable: element
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_offers
- > Notice in wp-content/plugins/wppaybox/includes/librairies/offers.class.php+295
Trying to get property 'id' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/orders.class.php+225
Non-static method wpaybox_display::getTable() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/display.class.php+174
Non-static method wpaybox_display::displayPageHeader() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/display.class.php+180
Non-static method wpaybox_display::displayPageFooter() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpaybox_option::doOptionsPage() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1771
Non-static method wpaybox_option::storeConfigForm() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method wpaybox_option::storeTpe() should not be called statically
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/options/options.class.php+320
Non-static method wpaybox_option::getStoreConfigOption() should not be called statically
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/options/options.class.php+324
Non-static method wpaybox_form::check_input_type() should not be called statically
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Notice in wp-content/plugins/wppaybox/includes/librairies/form.class.php+76
Undefined index: option
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Notice in wp-content/plugins/wppaybox/includes/librairies/form.class.php+81
Undefined index: valueToPut
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/form.class.php+101
Non-static method wpaybox_form::form_input() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method wpaybox_option::storeRang() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method wpaybox_option::storeIdentifier() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method wpaybox_option::urlCgi() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method wpaybox_option::environnement() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-content/plugins/wppaybox/includes/librairies/form.class.php+113
Non-static method wpaybox_form::form_input_select() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1771
Non-static method wpaybox_option::urlConfigForm() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method wpaybox_option::urlSuccess() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method wpaybox_option::urlCanceled() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wpaybox_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method wpaybox_option::urlDeclined() should not be called statically
- > GET request to /wp-admin/admin.php?page=wpaybox_offers
- > Notice in wp-content/plugins/wppaybox/includes/librairies/offers.class.php+108
Undefined index: wp_wppaybox__offers
- > GET request to /wp-admin/admin.php?page=wpaybox_offers
- > Notice in wp-content/plugins/wppaybox/includes/librairies/offers.class.php+108
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=wpaybox_offers
- > Notice in wp-content/plugins/wppaybox/includes/librairies/offers.class.php+109
Undefined index: payment_recurrent_amount
- > GET request to /wp-admin/admin.php?page=wpaybox_orders
- > Notice in wp-content/plugins/wppaybox/includes/librairies/orders.class.php+124
Undefined variable: actionResult
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
The following issues need your attention
- 13× 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 __() in wp-content/plugins/wppaybox/includes/languages/db_filed_list.php:12
- > PHP Warning
require_once(WP_PLUGIN_DIR/wppaybox/includes/configs/config.php): failed to open stream: No such file or directory in wp-content/plugins/wppaybox/wppaybox.php on line 26
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wppaybox/includes/configs/config.php on line 59
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppaybox/includes/configs/config.php on line 37
- > PHP Warning
Use of undefined constant WPAYBOX_PLUGIN_DIR - assumed 'WPAYBOX_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppaybox/includes/configs/config.php on line 38
- > PHP Warning
Use of undefined constant WPAYBOX_LIB_PLUGIN_DIR - assumed 'WPAYBOX_LIB_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppaybox/includes/includes.php on line 39
- > PHP Warning
Use of undefined constant WPAYBOX_PLUGIN_DIR - assumed 'WPAYBOX_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppaybox/includes/configs/config.php on line 37
- > PHP Fatal error
require_once(): Failed opening required 'WPAYBOX_LIB_PLUGIN_DIRpayment_forms.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/wppaybox/includes/includes.php on line 39
- > PHP Warning
require_once(WPAYBOX_LIB_PLUGIN_DIRpayment_forms.class.php): failed to open stream: No such file or directory in wp-content/plugins/wppaybox/includes/includes.php on line 39
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wppaybox/wppaybox.php on line 26
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Page de configuration du plugin, avec les identifiants de votre site chez Paybox et les urls de retour), #2 (Page d'ajout d'une offre de paiment unique), #3 (Page d'ajout d'une offre de paiement par abonnement), #4 (Liste des offres existantes), #5 (Page d'édition d'une offre existante), #6 (Page d'ajout de formulaire), #7 (Page d'édition de formulaire, avec le code à insérer dans la page), #8 (Liste des formulaires existants), #9 (Affichage du formulaire dans la partie "frontend" de votre site), #10 (Ajout du code du formulaire dans la page voulue), #11 (Liste des commandes passées), #12 (Visualisation d'une commande avec les détails)
wppaybox/wppaybox.php Passed 13 tests
The entry point to "wppaybox" version 1.3 is a PHP file that has certain tags in its header comment area
70 characters long description:
This plugin allows to add a paybox payment form on a wordpress website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,959 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 389 | 990 | 3,024 |
CSS | 3 | 46 | 155 | 439 |
PO File | 1 | 158 | 202 | 329 |
JavaScript | 1 | 9 | 8 | 167 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 42.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 5.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 100 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
25 PNG files occupy 0.87MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
medias/jquery-ui/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
medias/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
screenshot-11.png | 38.81KB | 15.93KB | ▼ 58.96% |
screenshot-6.png | 52.10KB | 22.50KB | ▼ 56.82% |
medias/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png | 0.15KB | 0.14KB | ▼ 6.62% |