89% affiliatewp-sign-up-bonus

Code Review | AffiliateWP - Sign Up Bonus

WordPress plugin AffiliateWP - Sign Up Bonus scored89%from 54 tests.

About plugin

  • Plugin page: affiliatewp-sign-...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2014
  • Latest release: Jun 3, 2022
  • Number of updates: 18
  • Update frequency: every 153.8 days
  • Top authors: sumobi (44.44%)DrewAPicture (27.78%)dbeja (27.78%)tubiz (11.11%)paninapress (11.11%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /8,938 total downloads

Benchmarks

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
Install script ran successfully

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

A check of server-side resources used by AffiliateWP - Sign Up Bonus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.00 ▼7.14
Dashboard /wp-admin3.36 ▲0.0144.83 ▼15.97
Posts /wp-admin/edit.php3.47 ▲0.1244.66 ▼4.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.26 ▼9.30
Media Library /wp-admin/upload.php3.28 ▲0.0534.00 ▲2.09

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for AffiliateWP - Sign Up Bonus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.17 ▼1.581.63 ▼0.0340.46 ▼2.88
Dashboard /wp-admin2,212 ▲215.83 ▲0.9497.74 ▼2.8840.08 ▼2.06
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0138.94 ▼2.9235.02 ▲0.16
Add New Post /wp-admin/post-new.php1,517 ▲317.52 ▲0.08649.41 ▼29.9855.09 ▼3.74
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.0595.76 ▼7.3342.35 ▼1.53

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2 in affiliatewp-sign-up-bonus/assets to your readme.txt
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can take inspiration from this readme.txt

affiliatewp-sign-up-bonus/affiliatewp-sign-up-bonus.php 85% from 13 tests

Analyzing the main PHP file in "AffiliateWP - Sign Up Bonus" version 1.3
Please take the time to fix the following:
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin779 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP72671,016748
PO File16631

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.00
▷ Minimum class complexity5.00
▷ Maximum class complexity29.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes125.00%
Methods78
▷ Static methods22.56%
▷ Public methods3950.00%
▷ Protected methods2228.21%
▷ Private methods1721.79%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin