83% personalization-by-flowcraft

Code Review | Advanced Personalization

WordPress plugin Advanced Personalization scored83%from 54 tests.

About plugin

  • Plugin page: personalization-b...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Oct 26, 2018
  • Latest release: Oct 21, 2019
  • Number of updates: 34
  • Update frequency: every 10.8 days
  • Top authors: flowcraft (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

20+ active /1,652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼4.24ms] Passed 4 tests

A check of server-side resources used by Advanced Personalization
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.43196.38 ▲153.81
Dashboard /wp-admin3.63 ▲0.3347.15 ▼5.35
Posts /wp-admin/edit.php3.75 ▲0.4050.67 ▼5.38
Add New Post /wp-admin/post-new.php6.22 ▲0.3397.14 ▼5.33
Media Library /wp-admin/upload.php3.56 ▲0.3338.37 ▼0.90
Add Condition /wp-admin/edit.php?post_type=personalization-cnd&page=add-personalization-condition3.6041.15
All Conditions /wp-admin/edit.php?post_type=personalization-cnd3.5634.26

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

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

Browser metrics Passed 4 tests

Advanced Personalization: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.22 ▼0.141.83 ▼0.3142.58 ▲2.28
Dashboard /wp-admin2,222 ▲455.52 ▼0.1385.11 ▼3.7170.84 ▲26.60
Posts /wp-admin/edit.php2,142 ▲422.00 ▲0.0438.07 ▼0.4532.96 ▼5.10
Add New Post /wp-admin/post-new.php1,558 ▲2923.64 ▲0.48634.44 ▼21.90160.43 ▲103.71
Media Library /wp-admin/upload.php1,442 ▲484.24 ▲0.05102.76 ▼5.1363.03 ▲16.19
Add Condition /wp-admin/edit.php?post_type=personalization-cnd&page=add-personalization-condition3,4788.02164.74103.38
All Conditions /wp-admin/edit.php?post_type=personalization-cnd1,1111.9334.5932.30

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

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=personalization-cnd
    • > Notice in wp-content/plugins/personalization-by-flowcraft/personalization.php+725
    Trying to get property 'post_type' of non-object

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (28 tag instead of maximum 10)
You can take inspiration from this readme.txt

personalization-by-flowcraft/personalization.php 85% from 13 tests

Analyzing the main PHP file in "Advanced Personalization" version 1.1.2
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("personalization-by-flowcraft.php" instead of "personalization.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 563 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,649 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP53928081,981
CSS240511,467
LESS1291143
SVG20239
JSON23019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity85.33
▷ Minimum class complexity15.00
▷ Maximum class complexity134.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods67
▷ Static methods2029.85%
▷ Public methods6495.52%
▷ Protected methods22.99%
▷ Private methods11.49%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants00.00%
▷ Class constants22100.00%
▷ Public constants22100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png6.33KB2.00KB▼ 68.39%