84% affiliates-ready-light

Code Review | Affiliates Ready! Ecommerce Integration Light

WordPress plugin Affiliates Ready! Ecommerce Integration Light scored84%from 54 tests.

About plugin

  • Plugin page: affiliates-ready-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2013
  • Latest release: Mar 9, 2015
  • Number of updates: 10
  • Update frequency: every 64.6 days
  • Top authors: itthinx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,386 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.70ms] Passed 4 tests

An overview of server-side resources used by Affiliates Ready! Ecommerce Integration Light
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0543.98 ▲1.32
Dashboard /wp-admin3.36 ▲0.0152.43 ▼13.60
Posts /wp-admin/edit.php3.41 ▲0.0553.22 ▼4.81
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.49 ▼9.69
Media Library /wp-admin/upload.php3.29 ▲0.0540.49 ▲2.90

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Affiliates Ready! Ecommerce Integration Light
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.25 ▲0.301.69 ▲0.0943.47 ▼1.73
Dashboard /wp-admin2,213 ▲335.61 ▲0.0091.79 ▼6.1642.68 ▲0.57
Posts /wp-admin/edit.php2,115 ▲152.01 ▲0.0636.59 ▼5.9439.05 ▲1.79
Add New Post /wp-admin/post-new.php1,541 ▲1523.73 ▲0.59719.39 ▲52.7555.67 ▲7.32
Media Library /wp-admin/upload.php1,415 ▲154.11 ▲0.02114.51 ▼3.5348.93 ▲4.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • 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 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-ready-light/affiliates-ready-light.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


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 to be fixed:
  • Screenshots: These screenshots require images: #1 (Referral rate setting - Here, a referral rate set at 0.25 credits affiliates with 25% commissions on sales.), #2 (Referrals created automatically for sales - Each referral is linked to its order.)
  • Tags: You are using too many tags: 32 tag instead of maximum 10
The official readme.txt is a good inspiration

affiliates-ready-light/affiliates-ready-light.php Passed 13 tests

The entry point to "Affiliates Ready! Ecommerce Integration Light" version 1.0.3 is a PHP file that has certain tags in its header comment area
43 characters long description:
Integrates Affiliates with Ready! Ecommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected204 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png60.80KB22.75KB▼ 62.58%
screenshot-1.png69.63KB26.35KB▼ 62.15%