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
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5142.09 ▲1.37
Dashboard /wp-admin3.82 ▲0.5152.28 ▲3.58
Posts /wp-admin/edit.php3.85 ▲0.4956.55 ▲11.46
Add New Post /wp-admin/post-new.php6.43 ▲0.5583.47 ▼8.56
Media Library /wp-admin/upload.php3.74 ▲0.5139.26 ▲5.85
Configuration /wp-admin/admin.php?page=affilizz-wizard3.6639.20
Affilizz /wp-admin/admin.php?page=affilizz3.6937.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲7415.12 ▲0.851.60 ▼0.2541.11 ▼5.90
Dashboard /wp-admin2,251 ▲706.32 ▲0.60107.96 ▲7.2784.59 ▲41.41
Posts /wp-admin/edit.php2,324 ▲2213.33 ▲1.3347.89 ▲8.4949.28 ▲13.96
Add New Post /wp-admin/post-new.php6,422 ▲4,89628.34 ▲5.16981.01 ▲305.9839.93 ▼21.88
Media Library /wp-admin/upload.php1,615 ▲2215.18 ▲1.00112.85 ▲18.7585.58 ▲43.81
Configuration /wp-admin/admin.php?page=affilizz-wizard1,4513.0343.87100.15
Affilizz /wp-admin/admin.php?page=affilizz1,2953.0247.0776.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:
LanguageFilesBlank linesComment linesLines of code
PHP404617562,339
JavaScript14165631,336
Sass14257171,284
PO File3330444891
HTML1270799
SVG2200227
JSON63034
CSS4007

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 code0.35
Average class complexity12.43
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces6
Interfaces0
Traits2
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods120
▷ Static methods3327.50%
▷ Public methods11495.00%
▷ Protected methods10.83%
▷ Private methods54.17%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants20
▷ Global constants20100.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