10% affilizz

Code Review | Affilizz

WordPress plugin Affilizz scored10%from 54 tests.

About plugin

  • Plugin page: affilizz
  • Plugin version: 1.14.2
  • PHP compatiblity: 7.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 12
  • Update frequency: every 7.3 days
  • Top authors: affilizz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /448 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/affilizz/classes/Core.php+328
    mkdir(): No such file or directory

Server metrics [RAM: ▲0.51MB] [CPU: ▲0.56ms] Passed 4 tests

Server-side resources used by Affilizz
This plugin does not affect your website's performance
Page Memory (MB) CPU Time (ms)
Home / 3.97 ▲0.51 42.09 ▲1.37
Dashboard /wp-admin 3.82 ▲0.51 52.28 ▲3.58
Posts /wp-admin/edit.php 3.85 ▲0.49 56.55 ▲11.46
Add New Post /wp-admin/post-new.php 6.43 ▲0.55 83.47 ▼8.56
Media Library /wp-admin/upload.php 3.74 ▲0.51 39.26 ▲5.85
Configuration /wp-admin/admin.php?page=affilizz-wizard 3.66 39.20
Affilizz /wp-admin/admin.php?page=affilizz 3.69 37.55

Server storage [IO: ▲0.53MB] [DB: ▲0.07MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/affilizz/" and "wp-content/uploads/"
    • (new file) wp-content/cache/6d990c51-6229-4412-8401-6557cb407681/.empty
Filesystem: 136 new files
Database: 1 new table, 7 new options
New tables
wp_affilizz_publications
New WordPress options
theysaidso_admin_options
can_compress_scripts
affilizz_proxy_uuid
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Affilizz
Minimal impact on browser resources
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 2,861 ▲74 15.12 ▲0.85 1.60 ▼0.25 41.11 ▼5.90
Dashboard /wp-admin 2,251 ▲70 6.32 ▲0.60 107.96 ▲7.27 84.59 ▲41.41
Posts /wp-admin/edit.php 2,324 ▲221 3.33 ▲1.33 47.89 ▲8.49 49.28 ▲13.96
Add New Post /wp-admin/post-new.php 6,422 ▲4,896 28.34 ▲5.16 981.01 ▲305.98 39.93 ▼21.88
Media Library /wp-admin/upload.php 1,615 ▲221 5.18 ▲1.00 112.85 ▲18.75 85.58 ▲43.81
Configuration /wp-admin/admin.php?page=affilizz-wizard 1,451 3.03 43.87 100.15
Affilizz /wp-admin/admin.php?page=affilizz 1,295 3.02 47.07 76.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_affilizz_publications
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • affilizz_proxy_uuid
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: ads, affilizz, block, affiliation, affiliate...

affilizz/init.php 92% from 13 tests

The main PHP script in "Affilizz" version 1.14.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("affilizz.php" instead of "init.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
Success! There were no dangerous files found in this plugin6,917 lines of code in 104 files:
Language Files Blank lines Comment lines Lines of code
PHP 40 461 756 2,339
JavaScript 14 165 63 1,336
Sass 14 257 17 1,284
PO File 3 330 444 891
HTML 1 27 0 799
SVG 22 0 0 227
JSON 6 3 0 34
CSS 4 0 0 7

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code 0.35
Average class complexity 12.43
▷ Minimum class complexity 1.00
▷ Maximum class complexity 41.00
Average method complexity 2.94
▷ Minimum method complexity 1.00
▷ Maximum method complexity 25.00
Code structure
Namespaces 6
Interfaces 0
Traits 2
Classes 19
▷ Abstract classes 0 0.00%
▷ Concrete classes 19 100.00%
▷ Final classes 0 0.00%
Methods 120
▷ Static methods 33 27.50%
▷ Public methods 114 95.00%
▷ Protected methods 1 0.83%
▷ Private methods 5 4.17%
Functions 1
▷ Named functions 0 0.00%
▷ Anonymous functions 1 100.00%
Constants 20
▷ Global constants 20 100.00%
▷ Class constants 0 0.00%
▷ Public constants 0 0.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