90% amarkets-affiliate-links

Code Review | AMarkets Affiliate Links

WordPress plugin AMarkets Affiliate Links scored90%from 54 tests.

About plugin

  • Plugin page: amarkets-affiliat...
  • Plugin version: 4...
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Jan 28, 2021
  • Number of updates: 10
  • Update frequency: every 2.0 days
  • Top authors: amarkets (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /397 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 gracefully, with no errors

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

Analyzing server-side resources used by AMarkets Affiliate Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.86 ▼0.74
Dashboard /wp-admin3.32 ▲0.0152.01 ▲2.95
Posts /wp-admin/edit.php3.37 ▲0.0152.93 ▼2.93
Add New Post /wp-admin/post-new.php5.90 ▲0.01123.02 ▲24.36
Media Library /wp-admin/upload.php3.24 ▲0.0138.22 ▲1.51

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for AMarkets Affiliate Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼0.951.66 ▼0.2948.33 ▼3.99
Dashboard /wp-admin2,203 ▲155.86 ▼0.02117.52 ▲8.3048.47 ▲1.12
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0149.52 ▲10.9637.67 ▲0.21
Add New Post /wp-admin/post-new.php1,514 ▼1417.54 ▼5.53689.77 ▲7.0060.92 ▲9.07
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.00102.60 ▼9.3843.44 ▼11.95

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: filter, affiliate, links, fix, amarkets

amarkets-affiliate-links/amarkets-affiliate-links.php 92% from 13 tests

"AMarkets Affiliate Links" version 4...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "4...")

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 plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions133.33%
▷ Anonymous functions266.67%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected