72% paybox-by-verifone-integration

Code Review | Wordpress Paybox Payment plugin

WordPress plugin Wordpress Paybox Payment plugin scored 72% from 54 tests.

About plugin

  • Plugin page: paybox-by-verifon...
  • Plugin version: 1.0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 10, 2017
  • Latest release: Feb 10, 2017
  • Number of updates: 15
  • Update frequency: every 1.8 days
  • Top authors: BM Services (80%)paybox (26.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼2.26ms] Passed 4 tests

Analyzing server-side resources used by Wordpress Paybox Payment plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2639.83 ▼6.45
Dashboard /wp-admin3.60 ▲0.3049.88 ▲1.57
Posts /wp-admin/edit.php3.65 ▲0.2950.13 ▼0.99
Add New Post /wp-admin/post-new.php6.12 ▲0.2398.09 ▼3.17
Media Library /wp-admin/upload.php3.47 ▲0.2540.07 ▲6.65
Paybox /wp-admin/options-general.php?page=paybox_options3.4433.56

Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Paybox Payment plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.48 ▲0.171.58 ▼0.3839.72 ▼2.96
Dashboard /wp-admin2,217 ▲295.85 ▲0.96104.29 ▼13.5437.82 ▼4.98
Posts /wp-admin/edit.php2,100 ▲112.00 ▼0.0437.82 ▼1.4435.52 ▲1.28
Add New Post /wp-admin/post-new.php1,538 ▲518.10 ▼5.30644.69 ▲12.5352.69 ▼1.27
Media Library /wp-admin/upload.php1,396 ▲84.15 ▼0.0997.70 ▼10.5240.36 ▼3.85
Paybox /wp-admin/options-general.php?page=paybox_options1,0702.0925.4347.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
    • > GET request to /wp-admin/options-general.php?page=paybox_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=paybox_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/paybox-by-verifone-integration/config_plugins.php
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      include_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-helper-payment.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-helper.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-helper-payment.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-helper-payment.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-encrypt.php on line 24
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-helper.php on line 4
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/template.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-helper.php on line 4
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/template.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-helper-payment.php on line 4
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-helper-payment.php on line 4
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/paybox-by-verifone-integration/includes/paybox-helper.php on line 3

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
  • Screenshots: Add images for these screenshots: #1 (The administration panel: payment configuration), #2 (The administration panel: Paybox Account parameters)
Please take inspiration from this readme.txt

paybox-by-verifone-integration/paybox-by-verifone-integration.php Passed 13 tests

The entry point to "Wordpress Paybox Payment plugin" version 1.0.0.1 is a PHP file that has certain tags in its header comment area
41 characters long description:
Paybox gateway payment plugins for Paybox

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,770 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP152712322,425
PO File1138162345

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity23.30
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods82
▷ Static methods1113.41%
▷ Public methods7692.68%
▷ Protected methods11.22%
▷ Private methods56.10%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png0.56KB0.66KB0.00%
assets/icon-256x256.png4.29KB2.11KB▼ 50.84%
images/logo-small.png2.09KB1.59KB▼ 24.15%
assets/icon-128x128.png5.44KB2.86KB▼ 47.43%
images/logo.png5.88KB3.40KB▼ 42.14%