90% affiliatewp-mailchimp-add-on

Code Review | AffiliateWP MailChimp Add-On

WordPress plugin AffiliateWP MailChimp Add-On scored90%from 54 tests.

About plugin

  • Plugin page: affiliatewp-mailc...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: May 24, 2014
  • Latest release: Oct 31, 2018
  • Number of updates: 29
  • Update frequency: every 55.9 days
  • Top authors: tubiz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /5,552 total downloads

Benchmarks

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.16MB] [CPU: ▼13.62ms] Passed 4 tests

A check of server-side resources used by AffiliateWP MailChimp Add-On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.18 ▼4.06
Dashboard /wp-admin3.21 ▼0.1041.05 ▼7.06
Posts /wp-admin/edit.php3.27 ▼0.0839.76 ▼20.19
Add New Post /wp-admin/post-new.php5.45 ▼0.4479.28 ▼23.16
Media Library /wp-admin/upload.php3.21 ▼0.0236.38 ▲0.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by AffiliateWP MailChimp Add-On
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.66 ▲0.351.77 ▼0.2643.30 ▲0.22
Dashboard /wp-admin2,215 ▲355.58 ▼0.0796.44 ▲7.5043.88 ▼2.57
Posts /wp-admin/edit.php2,120 ▲202.18 ▲0.2140.06 ▲3.7638.46 ▲0.81
Add New Post /wp-admin/post-new.php1,565 ▲3123.17 ▼0.16638.21 ▼57.9456.38 ▼3.84
Media Library /wp-admin/upload.php1,414 ▲144.21 ▼0.05103.76 ▲3.4146.00 ▲3.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: nigeria, mailchimp, affiliate wp, ecommerce, tubiz plugins...

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

The main PHP file in "AffiliateWP MailChimp Add-On" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("affiliatewp-mailchimp-add-on.php" instead of "affiliatewp-mailchimp-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin418 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2190124418

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity26.50
▷ Minimum class complexity4.00
▷ Maximum class complexity49.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods25
▷ Static methods14.00%
▷ Public methods2288.00%
▷ Protected methods00.00%
▷ Private methods312.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin