100% aakron-personalization

Code Review | AAkron Personalization

WordPress plugin AAkron Personalization scored 100% from 54 tests.

About plugin

  • Plugin page: aakron-personaliz...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 5.9.2
  • First release: Dec 3, 2021
  • Latest release: Feb 3, 2022
  • Number of updates: 3
  • Update frequency: every 34.4 days
  • Top authors: erinrouse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 132 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼315.14ms] Passed 4 tests

A check of server-side resources used by AAkron Personalization
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.34 ▲0.72
Dashboard /wp-admin3.41 ▲0.0033.64 ▲2.00
Posts /wp-admin/edit.php3.65 ▲0.0039.82 ▲4.55
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.93 ▼1,262.41
Media Library /wp-admin/upload.php3.30 ▲0.0024.26 ▼0.85

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by AAkron Personalization
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.99 ▼0.065.94 ▼0.192.79 ▲0.51
Dashboard /wp-admin2,881 ▲275.98 ▼0.20130.97 ▼14.53163.48 ▼0.56
Posts /wp-admin/edit.php2,688 ▼63.24 ▼0.0063.92 ▼0.91137.22 ▲2.54
Add New Post /wp-admin/post-new.php1,660 ▼5915.68 ▼6.72405.19 ▼11.89151.64 ▼9.41
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.02139.66 ▼9.10187.28 ▼2.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: designer, product designer tool, customization, woocommerce, product customizer

aakron-personalization/aakron-personalization.php Passed 13 tests

This is the main PHP file of "AAkron Personalization" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
This Plugin is used to connect wordpress to our product design tool.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,064 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP194811,0682,703
JavaScript31763249
CSS21327112

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity29.67
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods89
▷ Static methods22.25%
▷ Public methods8494.38%
▷ Protected methods00.00%
▷ Private methods55.62%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/in.png2.23KB0.94KB▼ 57.77%
admin/images/logo.png7.51KB7.50KB0.26%
public/images/insta.png2.71KB1.24KB▼ 54.36%
public/images/logo.png7.51KB7.50KB0.26%
public/images/tw.png2.47KB1.02KB▼ 58.73%