84% affiliates-manager-simple-membership-integration

Code Review | Affiliates Manager Simple Membership Integration

WordPress plugin Affiliates Manager Simple Membership Integration scored84%from 54 tests.

About plugin

  • Plugin page: affiliates-manage...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2015
  • Latest release: Jul 11, 2023
  • Number of updates: 9
  • Update frequency: every 324.1 days
  • Top authors: affmngr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Affiliates Manager Simple Membership Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.63 ▼6.01
Dashboard /wp-admin3.32 ▲0.0248.15 ▼3.98
Posts /wp-admin/edit.php3.38 ▲0.0250.62 ▲0.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.87 ▼7.29
Media Library /wp-admin/upload.php3.25 ▲0.0236.04 ▼3.08

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Affiliates Manager Simple Membership Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.26 ▼0.121.79 ▲0.0839.91 ▼4.52
Dashboard /wp-admin2,195 ▲215.70 ▲0.0589.19 ▼0.7239.57 ▲3.08
Posts /wp-admin/edit.php2,097 ▼02.05 ▲0.0540.14 ▲1.3535.94 ▲2.50
Add New Post /wp-admin/post-new.php1,548 ▲323.44 ▲0.07647.80 ▲14.1349.55 ▼4.46
Media Library /wp-admin/upload.php1,397 ▼64.24 ▲0.0397.90 ▼4.7845.95 ▼1.57

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/affiliates-manager-simple-membership-integration/affiliatemgr-simple-membership-integration.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
7 plugin tags: membership, affiliates, users, affiliates manager, simple membership...

affiliates-manager-simple-membership-integration/affiliatemgr-simple-membership-integration.php 92% from 13 tests

The main PHP script in "Affiliates Manager Simple Membership Integration" version 1.0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("affiliates-manager-simple-membership-integration.php" instead of "affiliatemgr-simple-membership-integration.php")

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 detected70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15870

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin