89% webmicro-payflowpro-woo-addon

Code Review | PayPal Payflow Pro Payment gateway for WooCommerce

WordPress plugin PayPal Payflow Pro Payment gateway for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: webmicro-payflowp...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 27, 2016
  • Latest release: Jul 30, 2016
  • Number of updates: 6
  • Update frequency: every 25.7 days
  • Top authors: nazrulhassanmca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.70ms] Passed 4 tests

A check of server-side resources used by PayPal Payflow Pro Payment gateway for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.72 ▼1.15
Dashboard /wp-admin3.31 ▲0.0150.78 ▲3.79
Posts /wp-admin/edit.php3.36 ▲0.0148.67 ▼0.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.16 ▼18.09
Media Library /wp-admin/upload.php3.23 ▲0.0132.69 ▼2.91

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for PayPal Payflow Pro Payment gateway for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.212.33 ▲0.5244.05 ▲0.72
Dashboard /wp-admin2,192 ▲125.58 ▼0.0886.01 ▼7.4539.85 ▼2.71
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.1339.08 ▼0.6035.60 ▼0.07
Add New Post /wp-admin/post-new.php1,545 ▲1423.01 ▼0.20673.78 ▼8.0355.88 ▼2.72
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.0597.29 ▼13.9244.02 ▼2.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
You can look at the official readme.txt

webmicro-payflowpro-woo-addon/webmicro-payflowpro-woo-addon.php Passed 13 tests

The principal PHP file in "PayPal Payflow Pro Payment gateway for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
113 characters long description:
This plugin adds a payment option in WooCommerce for customers to pay with their Credit Cards Via Paypal Payflow.

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 plugin362 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18523362

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/visa.png1.25KB1.29KB0.00%
images/amex.png2.19KB1.75KB▼ 20.33%
images/jcb.png1.05KB0.76KB▼ 27.31%
images/discover.png1.28KB1.30KB0.00%
images/paypalpropayflow.png4.38KB2.84KB▼ 35.25%