90% fast-thrivecart

Code Review | Fast ThriveCart

WordPress plugin Fast ThriveCart scored90%from 54 tests.

About plugin

  • Plugin page: fast-thrivecart
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 1, 2021
  • Latest release: Sep 5, 2022
  • Number of updates: 8
  • Update frequency: every 49.5 days
  • Top authors: fastflow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /630 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.40ms] Passed 4 tests

This is a short check of server-side resources used by Fast ThriveCart
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.14 ▼0.17
Dashboard /wp-admin3.32 ▲0.0244.39 ▼0.46
Posts /wp-admin/edit.php3.43 ▲0.0844.71 ▼0.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.18 ▼12.58
Media Library /wp-admin/upload.php3.24 ▲0.0236.29 ▲2.65

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Fast ThriveCart
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.22 ▼1.421.64 ▲0.0332.91 ▼9.24
Dashboard /wp-admin2,232 ▲415.82 ▼0.0895.79 ▼5.5045.02 ▲0.55
Posts /wp-admin/edit.php2,117 ▲282.05 ▲0.0136.67 ▲2.9442.19 ▲8.09
Add New Post /wp-admin/post-new.php1,381 ▼15020.80 ▼2.43582.00 ▼82.7169.89 ▲17.89
Media Library /wp-admin/upload.php1,411 ▲294.24 ▲0.03107.80 ▲11.3346.30 ▲3.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Enter your ThriveCart key into the Fast Flow settings), #2 (Add your Thrive Cart product ID into the Fast Member product)
The official readme.txt is a good inspiration

fast-thrivecart/fast-thrivecart.php Passed 13 tests

"Fast ThriveCart" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
ThriveCart payments 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
No dangerous file extensions were detected335 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23810335

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity38.00
▷ Minimum class complexity2.00
▷ Maximum class complexity74.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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