84% affiliates-manager-and-sell-digital-downloads

Code Review | Affiliates Manager and Sell Digital Downloads

WordPress plugin Affiliates Manager and Sell Digital Downloads scored84%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: Sep 6, 2014
  • Latest release: Aug 28, 2022
  • Number of updates: 9
  • Update frequency: every 323.9 days
  • Top authors: affmngr (55.56%)wp.insider (55.56%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,372 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.45ms] Passed 4 tests

This is a short check of server-side resources used by Affiliates Manager and Sell Digital Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.60 ▲2.64
Dashboard /wp-admin3.32 ▲0.0147.01 ▼4.81
Posts /wp-admin/edit.php3.37 ▲0.0146.91 ▼0.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.50 ▼15.38
Media Library /wp-admin/upload.php3.24 ▲0.0135.12 ▲2.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Affiliates Manager and Sell Digital Downloads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.301.64 ▲0.0645.93 ▲6.52
Dashboard /wp-admin2,198 ▲245.59 ▼0.0490.17 ▼12.9536.84 ▼6.57
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0938.29 ▲0.7930.74 ▼4.50
Add New Post /wp-admin/post-new.php1,535 ▲923.22 ▼0.15601.36 ▼14.6286.04 ▲25.04
Media Library /wp-admin/upload.php1,397 ▲34.16 ▼0.0894.59 ▼7.5140.12 ▼3.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-manager-and-sell-digital-downloads/affiliatemgr-sdd-integration.php:29

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)
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
8 plugin tags: downloads, affiliate, digital downloads, integration, affiliates...

affiliates-manager-and-sell-digital-downloads/affiliatemgr-sdd-integration.php 92% from 13 tests

The main PHP script in "Affiliates Manager and Sell Digital Downloads" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("affiliates-manager-and-sell-digital-downloads.php" instead of "affiliatemgr-sdd-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 detected53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13853

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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%
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
No PNG files were detected