84% adrecord-affiliate

Code Review | Adrecord Affiliate

WordPress plugin Adrecord Affiliate scored84%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: 6.3.1
  • 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 /743 total downloads

Benchmarks

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.57MB] [CPU: ▼19.88ms] Passed 4 tests

Server-side resources used by Adrecord Affiliate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1138.05 ▼2.31
Dashboard /wp-admin3.41 ▲0.1145.54 ▼1.92
Posts /wp-admin/edit.php3.53 ▲0.1744.89 ▼2.78
Add New Post /wp-admin/post-new.php3.29 ▼2.6035.67 ▼72.51
Media Library /wp-admin/upload.php3.34 ▲0.1134.50 ▼0.90

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
Adrecord-Wordpress-Plugin

Browser metrics Passed 4 tests

A check of browser resources used by Adrecord Affiliate
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.30 ▼0.351.87 ▲0.3243.71 ▲4.69
Dashboard /wp-admin2,232 ▲515.49 ▼0.2283.77 ▼17.2738.77 ▼1.36
Posts /wp-admin/edit.php2,134 ▲342.00 ▲0.0133.70 ▼7.2234.20 ▼0.94
Add New Post /wp-admin/post-new.php1,539 ▲1323.01 ▼0.56597.87 ▼54.7256.27 ▼1.38
Media Library /wp-admin/upload.php1,431 ▲314.19 ▲0.1294.96 ▼10.4944.50 ▲1.53

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: adrecord, addrecord, affiliate, affiliate marketing, clean links

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

The main file in "Adrecord Affiliate" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,182 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript93856471
PHP686121418
PO File1314798
SVG20165
CSS38748
JSON30042
Markdown19022
HTML232018

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
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
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods1777.27%
▷ Public methods1881.82%
▷ Protected methods313.64%
▷ Private methods14.55%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants6
▷ Global constants6100.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
No PNG files were detected