89% affiliates-events-manager

Code Review | Affiliates Events Manager

WordPress plugin Affiliates Events Manager scored89%from 54 tests.

About plugin

  • Plugin page: affiliates-events...
  • Plugin version: 3.2.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Nov 12, 2017
  • Latest release: May 9, 2022
  • Number of updates: 9
  • Update frequency: every 182.1 days
  • Top authors: itthinx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /8,080 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.00MB] [CPU: ▼8.37ms] Passed 4 tests

An overview of server-side resources used by Affiliates Events Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.17 ▼4.37
Dashboard /wp-admin3.31 ▲0.0148.69 ▼9.83
Posts /wp-admin/edit.php3.36 ▲0.0052.28 ▼0.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.45 ▼19.22
Media Library /wp-admin/upload.php3.23 ▲0.0036.27 ▲3.81

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Affiliates Events Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.32 ▼1.061.75 ▼0.1041.10 ▼3.57
Dashboard /wp-admin2,225 ▲375.88 ▲0.97108.07 ▲1.3744.79 ▲5.12
Posts /wp-admin/edit.php2,110 ▲212.05 ▲0.0440.69 ▲4.3436.53 ▲4.56
Add New Post /wp-admin/post-new.php1,555 ▲4123.52 ▲5.82639.49 ▼29.8354.40 ▼4.59
Media Library /wp-admin/upload.php1,407 ▲164.24 ▼0.02101.05 ▲0.0143.06 ▼1.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Tags: You are using too many tags: 22 tag instead of maximum 10
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in affiliates-events-manager/assets to your readme.txt
You can take inspiration from this readme.txt

affiliates-events-manager/affiliates-events-manager.php 92% from 13 tests

"Affiliates Events Manager" version 3.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:
  • Description: The description should be shorter than 140 characters (currently 325 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,384 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP61513831,384

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity50.00
▷ Minimum class complexity10.00
▷ Maximum class complexity109.00
Average method complexity8.21
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods34
▷ Static methods34100.00%
▷ Public methods3294.12%
▷ Protected methods00.00%
▷ Private methods25.88%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants67
▷ Global constants68.96%
▷ Class constants6191.04%
▷ Public constants61100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected