83% paybox-by-verifone-for-wp-e-commerce

Code Review | WP-e-Commerce Paybox by Verifone Gateway

WordPress plugin WP-e-Commerce Paybox by Verifone Gateway scored83%from 54 tests.

About plugin

  • Plugin page: paybox-by-verifon...
  • Plugin version: 1.0.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 11, 2017
  • Latest release: Jan 11, 2017
  • Number of updates: 2
  • Update frequency: every 9.0 days
  • Top authors: paybox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /660 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.96ms] Passed 4 tests

An overview of server-side resources used by WP-e-Commerce Paybox by Verifone Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.68 ▼6.49
Dashboard /wp-admin3.34 ▲0.0445.35 ▼3.10
Posts /wp-admin/edit.php3.40 ▲0.0449.74 ▲3.61
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.77 ▲3.04
Media Library /wp-admin/upload.php3.27 ▲0.0333.37 ▲2.69

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-e-Commerce Paybox by Verifone Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲9514.74 ▲0.361.79 ▼0.2238.53 ▼6.42
Dashboard /wp-admin2,225 ▲375.84 ▲0.9799.41 ▼17.2848.02 ▲2.47
Posts /wp-admin/edit.php2,111 ▲252.02 ▲0.0140.05 ▲2.4045.33 ▲15.27
Add New Post /wp-admin/post-new.php1,376 ▼16620.60 ▲2.32516.31 ▼127.9147.52 ▼8.58
Media Library /wp-admin/upload.php1,410 ▲194.17 ▼0.0496.13 ▲0.7045.64 ▲4.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WPSC_Paybox_Abstract_Gateway' not found in wp-content/plugins/paybox-by-verifone-for-wp-e-commerce/includes/wpsc-paybox-standard-gateway.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPSC_Paybox_Abstract_Gateway' not found in wp-content/plugins/paybox-by-verifone-for-wp-e-commerce/includes/wpsc-paybox-threetime-gateway.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (The WP-e-Commerce administration panel: payment configuration), #2 (The WP-e-Commerce administration panel: Paybox Account parameters)
  • Donate link: Invalid url: "none"
You can take inspiration from this readme.txt

paybox-by-verifone-for-wp-e-commerce/paybox-wp-e-commerce.php 92% from 13 tests

The primary PHP file in "WP-e-Commerce Paybox by Verifone Gateway" version 1.0.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("paybox-by-verifone-for-wp-e-commerce.php" instead of "paybox-wp-e-commerce.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
Good job! No executable or dangerous file extensions detected469 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP57021469

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.25
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin