84% affiliates-manager-paid-membership-pro-integration

Code Review | Affiliates Manager Paid Membership Pro Integration

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

About plugin

  • Plugin page: affiliates-manage...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 6.3.1
  • First release: Sep 6, 2014
  • Latest release: Nov 23, 2021
  • Number of updates: 10
  • Update frequency: every 264.0 days
  • Top authors: affmngr (80%)wp.insider (30%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /8,923 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Affiliates Manager Paid Membership Pro Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.71 ▼1.92
Dashboard /wp-admin3.32 ▼0.0352.25 ▼18.34
Posts /wp-admin/edit.php3.37 ▲0.0147.53 ▼5.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.31 ▼21.82
Media Library /wp-admin/upload.php3.24 ▲0.0138.54 ▲2.76

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Affiliates Manager Paid Membership Pro Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.17 ▼0.412.26 ▲0.1044.25 ▼0.07
Dashboard /wp-admin2,192 ▲155.65 ▲0.0194.74 ▲4.2842.72 ▼2.05
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0435.92 ▼0.8835.19 ▲0.59
Add New Post /wp-admin/post-new.php1,526 ▼017.64 ▲0.05688.43 ▼3.0651.77 ▼14.19
Media Library /wp-admin/upload.php1,403 ▲94.30 ▲0.0597.42 ▼0.5546.21 ▲5.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-manager-paid-membership-pro-integration/affiliatemgr-pmpro-integration.php:12

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: affiliate, paid membership pro, affiliates, affiliates manager, users...

affiliates-manager-paid-membership-pro-integration/affiliatemgr-pmpro-integration.php 92% from 13 tests

"Affiliates Manager Paid Membership Pro Integration" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("affiliates-manager-paid-membership-pro-integration.php" instead of "affiliatemgr-pmpro-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142186

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin