84% adrecord-affiliate

Code Review | Adrecord Affiliate

WordPress plugin Adrecord Affiliate scored 84% from 54 tests.

About plugin

  • Plugin page: adrecord-affiliate
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.0.3
  • WordPress version: 5.9.2
  • First release: Feb 5, 2019
  • Latest release: Feb 5, 2019
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: adrecord (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 501 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.82MB] [CPU: ▼320.58ms] Passed 4 tests

This is a short check of server-side resources used by Adrecord Affiliate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1861.90 ▲0.22
Dashboard /wp-admin3.53 ▲0.1235.98 ▲2.63
Posts /wp-admin/edit.php3.75 ▲0.1139.76 ▲1.91
Add New Post /wp-admin/post-new.php3.35 ▼3.6230.98 ▼1,276.54
Media Library /wp-admin/upload.php3.40 ▲0.1125.56 ▼7.91

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Adrecord Affiliate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,832 ▲7815.22 ▼0.456.55 ▲0.042.30 ▼1.07
Dashboard /wp-admin2,929 ▲716.12 ▼0.06120.85 ▼17.70176.49 ▼29.06
Posts /wp-admin/edit.php2,728 ▲343.37 ▲0.1364.51 ▲0.59145.35 ▼2.50
Add New Post /wp-admin/post-new.php1,730 ▼2721.22 ▼0.84441.69 ▼33.44187.49 ▲24.90
Media Library /wp-admin/upload.php1,738 ▲405.50 ▲0.01142.24 ▼9.60192.21 ▼3.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 1 option
    • Adrecord-Wordpress-Plugin

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/adrecord-affiliate/adrecord-affiliate.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


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: addrecord, adrecord, clean links, affiliate, affiliate marketing

adrecord-affiliate/adrecord-affiliate.php 92% from 13 tests

"Adrecord Affiliate" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected1,182 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PO File1314798

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.00
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1777.27%
▷ Public methods1881.82%
▷ Protected methods313.64%
▷ Private methods14.55%
▷ Named functions1090.91%
▷ Anonymous functions19.09%
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected