83% affiliate-products-blocks

Code Review | Affiliaterg - Affiliate Products Booster Blocks

WordPress plugin Affiliaterg - Affiliate Products Booster Blocks scored83%from 54 tests.

About plugin

  • Plugin page: affiliate-product...
  • Plugin version: 2.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2021
  • Latest release: Nov 9, 2023
  • Number of updates: 19
  • Update frequency: every 37.9 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /3,064 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼9.56ms] Passed 4 tests

An overview of server-side resources used by Affiliaterg - Affiliate Products Booster Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2339.59 ▼4.08
Dashboard /wp-admin3.48 ▲0.1845.56 ▼5.37
Posts /wp-admin/edit.php3.60 ▲0.2447.66 ▲0.56
Add New Post /wp-admin/post-new.php6.37 ▲0.4883.10 ▼29.33
Media Library /wp-admin/upload.php3.41 ▲0.1835.69 ▲1.35

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Affiliaterg - Affiliate Products Booster Blocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16113.77 ▼0.617.67 ▲5.8137.40 ▼6.59
Dashboard /wp-admin2,210 ▲305.59 ▲0.0191.23 ▼0.7240.83 ▼2.63
Posts /wp-admin/edit.php2,112 ▲121.97 ▼0.0439.97 ▲1.0136.68 ▲1.24
Add New Post /wp-admin/post-new.php6,420 ▲4,89428.59 ▲5.63876.12 ▲257.9037.16 ▼17.68
Media Library /wp-admin/upload.php1,409 ▲94.23 ▲0.09100.74 ▲1.8741.16 ▼0.45

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

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

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
Almost there! Just 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/affiliate-products-blocks/admin/admin.php:11

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)
There were no browser issues found


Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

affiliate-products-blocks/plugin.php 69% from 13 tests

The entry point to "Affiliaterg - Affiliate Products Booster Blocks" version 2.1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("affiliate-products-blocks.php" instead of "plugin.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.0")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.6" instead of "5.7")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin7,448 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity6.50
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods15.26%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin