90% affiliatewp-getresponse-add-on

Code Review | AffiliateWP GetResponse Add-On

WordPress plugin AffiliateWP GetResponse Add-On scored 90% from 54 tests.

About plugin

  • Plugin page: affiliatewp-getre...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.6
  • WordPress version: 6.3.1
  • First release: Sep 24, 2014
  • Latest release: Nov 21, 2016
  • Number of updates: 13
  • Update frequency: every 60.7 days
  • Top authors: tubiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.02ms] Passed 4 tests

This is a short check of server-side resources used by AffiliateWP GetResponse Add-On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.34 ▲0.18
Dashboard /wp-admin3.31 ▲0.0045.82 ▼0.52
Posts /wp-admin/edit.php3.36 ▲0.0050.04 ▲1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.38 ▼2.88
Media Library /wp-admin/upload.php3.23 ▲0.0035.45 ▼0.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for AffiliateWP GetResponse Add-On
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.011.74 ▼0.2844.36 ▲2.33
Dashboard /wp-admin2,206 ▲185.89 ▲0.83108.09 ▼8.3539.71 ▼8.70
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0241.25 ▲0.8635.71 ▼2.51
Add New Post /wp-admin/post-new.php1,534 ▼023.17 ▲0.21636.02 ▲14.5850.89 ▲8.13
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0296.72 ▼0.6440.28 ▼0.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: tubiz plugins, nigeria, e-commerce, affiliatewp, ecommerce...

affiliatewp-getresponse-add-on/affiliatewp-getresponse-addon.php 92% from 13 tests

"AffiliateWP GetResponse Add-On" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("affiliatewp-getresponse-add-on.php" instead of "affiliatewp-getresponse-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected502 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2157144502

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.36
Average class complexity35.50
▷ Minimum class complexity19.00
▷ Maximum class complexity52.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods28
▷ Static methods13.57%
▷ Public methods2382.14%
▷ Protected methods310.71%
▷ Private methods27.14%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin