90% affiliates-manager-stripe-payments-integration

Code Review | Affiliates Manager Stripe Payments Integration

WordPress plugin Affiliates Manager Stripe Payments Integration scored 90% from 54 tests.

About plugin

  • Plugin page: affiliates-manage...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0
  • WordPress version: 6.3.1
  • First release: Jul 9, 2017
  • Latest release: Aug 28, 2022
  • Number of updates: 5
  • Update frequency: every 375.6 days
  • Top authors: affmngr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,779 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Affiliates Manager Stripe Payments Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.78 ▼3.91
Dashboard /wp-admin3.31 ▲0.0145.02 ▼1.87
Posts /wp-admin/edit.php3.36 ▲0.0046.35 ▲1.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.05 ▼18.92
Media Library /wp-admin/upload.php3.23 ▲0.0034.78 ▲2.26

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
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

An overview of browser requirements for Affiliates Manager Stripe Payments Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.231.62 ▼0.1141.10 ▼11.88
Dashboard /wp-admin2,206 ▲185.86 ▼0.02109.17 ▲5.8241.05 ▲0.33
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0040.69 ▲3.2536.90 ▲1.34
Add New Post /wp-admin/post-new.php1,541 ▲718.18 ▼5.02635.53 ▼30.4954.12 ▲4.36
Media Library /wp-admin/upload.php1,391 ▲34.40 ▲0.1997.77 ▼4.3642.59 ▼2.67

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
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: affiliate, affiliates, stripe, affiliates manager, integration...

affiliates-manager-stripe-payments-integration/affiliatemgr-stripe-payments-integration.php 92% from 13 tests

The primary PHP file in "Affiliates Manager Stripe Payments Integration" version 1.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("affiliates-manager-stripe-payments-integration.php" instead of "affiliatemgr-stripe-payments-integration.php")

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
Everything looks great! No dangerous files found in this plugin52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181152

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin