84% affiliates-manager-wp-estore-integration

Code Review | Affiliates Manager WP eStore Integration

WordPress plugin Affiliates Manager WP eStore Integration scored84%from 54 tests.

About plugin

  • Plugin page: affiliates-manage...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0
  • WordPress version: 6.3.1
  • First release: Apr 23, 2015
  • Latest release: Aug 28, 2022
  • Number of updates: 7
  • Update frequency: every 383.4 days
  • Top authors: affmngr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.82ms] Passed 4 tests

Server-side resources used by Affiliates Manager WP eStore Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.16 ▼7.78
Dashboard /wp-admin3.31 ▼0.0448.68 ▼16.46
Posts /wp-admin/edit.php3.36 ▲0.0053.35 ▲2.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.65 ▼14.64
Media Library /wp-admin/upload.php3.23 ▲0.0035.88 ▼4.38

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Affiliates Manager WP eStore Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.24 ▼1.151.67 ▼0.0340.81 ▼2.11
Dashboard /wp-admin2,224 ▲275.83 ▼0.02100.43 ▼2.8541.29 ▼0.26
Posts /wp-admin/edit.php2,097 ▼02.02 ▲0.0240.28 ▲3.5536.03 ▲0.71
Add New Post /wp-admin/post-new.php1,542 ▼1123.20 ▲4.91601.75 ▼41.4950.98 ▼1.32
Media Library /wp-admin/upload.php1,394 ▼94.30 ▲0.07100.01 ▼0.4341.22 ▼5.74

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliates-manager-wp-estore-integration/affiliatemgr-estore-integration.php:29

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: estore, download, checkout, downloads, affiliates...

affiliates-manager-wp-estore-integration/affiliatemgr-estore-integration.php 92% from 13 tests

"Affiliates Manager WP eStore Integration" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("affiliates-manager-wp-estore-integration.php" instead of "affiliatemgr-estore-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13853

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin