10% fastspring-integration-for-wp

Code Review | FastSpring Integration For WP

WordPress plugin FastSpring Integration For WP scored10%from 54 tests.

About plugin

  • Plugin page: fastspring-integr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2022
  • Latest release: Dec 30, 2022
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: integratordev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /435 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/fastspring-integration-for-wp/fastspring-integration-for-wp.php+436
    Undefined variable: charset_collate

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.50ms] Passed 4 tests

This is a short check of server-side resources used by FastSpring Integration For WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.26 ▼1.17
Dashboard /wp-admin3.43 ▲0.1249.66 ▼1.77
Posts /wp-admin/edit.php3.48 ▲0.1247.76 ▼4.03
Add New Post /wp-admin/post-new.php6.01 ▲0.1287.60 ▼11.03
Media Library /wp-admin/upload.php3.35 ▲0.1238.88 ▲3.08

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp_fsifwp_edd_order_reference
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

FastSpring Integration For WP: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.21 ▼0.932.09 ▲0.3543.41 ▲3.72
Dashboard /wp-admin2,218 ▲304.86 ▼1.04103.81 ▼0.9737.90 ▼6.79
Posts /wp-admin/edit.php2,097 ▲82.04 ▼0.0135.60 ▼0.1539.29 ▲3.86
Add New Post /wp-admin/post-new.php1,531 ▲323.28 ▲0.09672.19 ▼50.6153.71 ▼1.65
Media Library /wp-admin/upload.php1,397 ▲64.23 ▼0.04108.61 ▲0.2747.33 ▲1.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_fsifwp_edd_order_reference
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: fastspring, easy digital downloads, world, edd, payments

fastspring-integration-for-wp/fastspring-integration-for-wp.php 85% from 13 tests

The main file in "FastSpring Integration For WP" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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 detected744 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP428853724
JavaScript115020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
There are no PNG files in this plugin