83% paymentgatewayoffastspringforwoocommerce

Code Review | Payment Gateway Of FastSpring For WooCommerce

WordPress plugin Payment Gateway Of FastSpring For WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: paymentgatewayoff...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.2
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: May 8, 2019
  • Number of updates: 17
  • Update frequency: every 70.5 days
  • Top authors: deligence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,927 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.02MB] [CPU: ▼4.58ms] Passed 4 tests

A check of server-side resources used by Payment Gateway Of FastSpring For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.16 ▼2.82
Dashboard /wp-admin3.33 ▲0.0250.02 ▼0.35
Posts /wp-admin/edit.php3.38 ▲0.0249.97 ▼2.76
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.00 ▼6.13
Media Library /wp-admin/upload.php3.25 ▲0.0235.24 ▼6.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Payment Gateway Of FastSpring For WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.19 ▼0.431.75 ▼0.2343.29 ▲3.11
Dashboard /wp-admin2,198 ▲185.58 ▼0.0888.32 ▼4.0538.15 ▼1.44
Posts /wp-admin/edit.php2,100 ▼02.07 ▲0.1035.77 ▼7.9134.27 ▼3.68
Add New Post /wp-admin/post-new.php1,526 ▼222.93 ▼0.34664.91 ▼16.4554.70 ▼15.54
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.05103.82 ▼5.6345.36 ▼0.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paymentgatewayoffastspringforwoocommerce/woocommerce-fastspring.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
  • Donate link: Invalid url: ""
The official readme.txt might help

paymentgatewayoffastspringforwoocommerce/woocommerce-fastspring.php 85% from 13 tests

The entry point to "Payment Gateway Of FastSpring For WooCommerce" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("paymentgatewayoffastspringforwoocommerce.php" instead of "woocommerce-fastspring.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22914154

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.25MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) fastspring.png3.41KB0.00KB▼ 100.00%
screenshot-3.png48.93KB15.21KB▼ 68.91%
screenshot-1.png125.93KB45.50KB▼ 63.87%
screenshot-2.png73.06KB25.75KB▼ 64.76%