89% securacart-stripe-payments

Code Review | SecuraCart - Stripe Payments

WordPress plugin SecuraCart - Stripe Payments scored89%from 54 tests.

About plugin

  • Plugin page: securacart-stripe...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: May 26, 2020
  • Latest release: Jul 30, 2020
  • Number of updates: 24
  • Update frequency: every 2.7 days
  • Top authors: securacart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,168 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.91ms] Passed 4 tests

This is a short check of server-side resources used by SecuraCart - Stripe Payments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.84 ▼6.48
Dashboard /wp-admin3.32 ▼0.0343.96 ▼21.19
Posts /wp-admin/edit.php3.37 ▲0.0146.47 ▲1.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.40 ▼13.17
Media Library /wp-admin/upload.php3.25 ▲0.0134.64 ▲1.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SecuraCart - Stripe Payments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,783 ▲3714.14 ▼0.211.75 ▲0.0141.22 ▼1.58
Dashboard /wp-admin2,195 ▲185.66 ▼0.0282.49 ▼13.7038.31 ▼11.01
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0641.25 ▲5.5134.02 ▼1.15
Add New Post /wp-admin/post-new.php6,206 ▲4,67521.12 ▼1.95884.89 ▲291.5875.48 ▲18.43
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.04104.78 ▲4.4044.81 ▲1.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • License uri: Invalid url: ""
Please take inspiration from this readme.txt

securacart-stripe-payments/plugin.php 85% from 13 tests

The main PHP file in "SecuraCart - Stripe Payments" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("securacart-stripe-payments.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 377 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin7,398 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON2007,139
JavaScript31158145
PHP2155764
Sass35948
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin