83% perzonalization

Code Review | Perzonalization - The AI Powered Personalization Engine for WooCommerce

WordPress plugin Perzonalization - The AI Powered Personalization Engine for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: perzonalization
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Jan 22, 2023
  • Number of updates: 98
  • Update frequency: every 25.7 days
  • Top authors: Perzonalization (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

60+ active /4,252 total downloads

Benchmarks

Plugin footprint 82% 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.09MB] [CPU: ▲308.38ms] 75% from 4 tests

Analyzing server-side resources used by Perzonalization - The AI Powered Personalization Engine for WooCommerce
Please take the time to fix the following items
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 308.38ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.10355.55 ▲315.08
Dashboard /wp-admin3.40 ▲0.10376.46 ▲320.48
Posts /wp-admin/edit.php3.45 ▲0.09337.87 ▲292.24
Add New Post /wp-admin/post-new.php5.98 ▲0.09415.89 ▲319.42
Media Library /wp-admin/upload.php3.32 ▲0.09342.54 ▲306.77

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Perzonalization - The AI Powered Personalization Engine for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲3313.59 ▼0.781.64 ▼0.4636.99 ▼7.63
Dashboard /wp-admin2,206 ▲355.83 ▲0.7094.24 ▼29.4939.47 ▼10.58
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0332.81 ▼3.2234.14 ▲1.90
Add New Post /wp-admin/post-new.php1,533 ▲1921.31 ▲3.83623.56 ▼55.0357.66 ▲6.01
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.0593.45 ▼6.3340.05 ▼4.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/perzonalization/perzonalization.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 88 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #5, #6 in perzonalization/assets to your readme.txt
You can look at the official readme.txt

perzonalization/perzonalization.php 92% from 13 tests

The primary PHP file in "Perzonalization - The AI Powered Personalization Engine for WooCommerce" version 1.6.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 352 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin634 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1105140634

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions20
▷ Named functions1575.00%
▷ Anonymous functions525.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 1.65MB with 1.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png368.69KB131.00KB▼ 64.47%
screenshot-5.png208.98KB74.13KB▼ 64.53%
banner-772x250.png72.75KB25.08KB▼ 65.52%
screenshot-3.png178.64KB66.25KB▼ 62.91%
screenshot-2.png258.47KB95.14KB▼ 63.19%