84% wcproxypay

Code Review | Proxypay

WordPress plugin Proxypay scored84%from 54 tests.

About plugin

  • Plugin page: wcproxypay
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2019
  • Latest release: Dec 13, 2022
  • Number of updates: 22
  • Update frequency: every 58.4 days
  • Top authors: netoxygen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.23ms] Passed 4 tests

A check of server-side resources used by Proxypay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0839.64 ▼3.22
Dashboard /wp-admin3.43 ▲0.0850.28 ▼2.54
Posts /wp-admin/edit.php3.54 ▲0.1451.90 ▼11.56
Add New Post /wp-admin/post-new.php6.01 ▲0.0889.88 ▼3.59
Media Library /wp-admin/upload.php3.35 ▲0.0838.54 ▲1.81

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Proxypay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.19 ▼0.161.56 ▼0.2140.48 ▼3.42
Dashboard /wp-admin2,198 ▲275.62 ▲0.0495.01 ▲7.1140.14 ▼0.92
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0641.13 ▼0.2535.73 ▼2.87
Add New Post /wp-admin/post-new.php1,534 ▲818.18 ▼4.89606.44 ▼35.9560.76 ▲12.60
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.0297.18 ▼6.9642.50 ▼6.24

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Netoxygen\\ProxyPay\\PaymentQuery' not found in wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/src/Netoxygen/ProxyPay/PaymentResponse.php:9
    • > PHP Warning
      require_once(wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/tests/bootstrap.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'Netoxygen\\ProxyPay\\PaymentQuery' not found in wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/src/Netoxygen/ProxyPay/PaymentRequest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/tests/Netoxygen/ProxyPay/PaymentResponseTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/tests/Netoxygen/ProxyPay/PaymentRequestTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/tests/Netoxygen/ProxyPay/PaymentQueryTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/tests/Netoxygen/ProxyPay/ParametersFilterTest.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/tests/Netoxygen/ProxyPay/ShaComposerTest.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcproxypay/wcproxypay.php:17
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wcproxypay/vendor/netoxygen/proxypay/tests/bootstrap.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

wcproxypay/wcproxypay.php Passed 13 tests

"Proxypay" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
20 characters long description:
Proxypay integration

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,933 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP222024371,034
HTML190310
Markdown2650229
CSS185155184
JSON20081
make312239
XML10038
YAML20018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.75
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes00.00%
Methods67
▷ Static methods45.97%
▷ Public methods6292.54%
▷ Protected methods45.97%
▷ Private methods11.49%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin