89% affiliatewp-affiliate-qr-codes

Code Review | AffiliateWP - Affiliate QR Codes

WordPress plugin AffiliateWP - Affiliate QR Codes scored89%from 54 tests.

About plugin

  • Plugin page: affiliatewp-affil...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: May 19, 2021
  • Latest release: Jun 3, 2022
  • Number of updates: 12
  • Update frequency: every 31.7 days
  • Top authors: DrewAPicture (75%)dbeja (25%)tubiz (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,663 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.58ms] Passed 4 tests

A check of server-side resources used by AffiliateWP - Affiliate QR Codes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.80 ▼3.68
Dashboard /wp-admin3.36 ▲0.0551.25 ▼18.90
Posts /wp-admin/edit.php3.47 ▲0.1250.23 ▼1.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.99 ▼5.62
Media Library /wp-admin/upload.php3.28 ▲0.0537.60 ▼2.11

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

AffiliateWP - Affiliate QR Codes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.14 ▼0.211.78 ▼0.1741.54 ▼3.23
Dashboard /wp-admin2,195 ▲185.51 ▼0.1191.67 ▼11.7041.91 ▼0.75
Posts /wp-admin/edit.php2,106 ▲61.97 ▼0.0437.54 ▼1.4733.84 ▼1.38
Add New Post /wp-admin/post-new.php1,529 ▲323.02 ▼0.16670.37 ▼43.0349.44 ▼10.65
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0199.34 ▼16.9946.94 ▼0.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
  • Contributors: Please add at least on tag
You can take inspiration from this readme.txt

affiliatewp-affiliate-qr-codes/affiliatewp-affiliate-qr-codes.php Passed 13 tests

The main file in "AffiliateWP - Affiliate QR Codes" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Allows affiliates to save, print, or share their affiliate URL as a QR code.

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
Good job! No executable or dangerous file extensions detected579 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of 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.24
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes114.29%
▷ Static methods46.90%
▷ Public methods2950.00%
▷ Protected methods1525.86%
▷ Private methods1424.14%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants4100.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
PNG images were not found in this plugin