89% ammazza-webar

Code Review | AMMAZZA Virtual Try-On for Jewellery

WordPress plugin AMMAZZA Virtual Try-On for Jewellery scored89%from 54 tests.

About plugin

  • Plugin page: ammazza-webar
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 20, 2021
  • Latest release: Jun 2, 2022
  • Number of updates: 22
  • Update frequency: every 13.0 days
  • Top authors: weboccults (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /610 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼11.48ms] Passed 4 tests

Server-side resources used by AMMAZZA Virtual Try-On for Jewellery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▼0.6018.76 ▼25.01
Dashboard /wp-admin3.35 ▲0.0449.03 ▼1.22
Posts /wp-admin/edit.php3.21 ▼0.1535.21 ▼14.37
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.15 ▼5.30
Media Library /wp-admin/upload.php3.27 ▲0.0438.35 ▲4.42

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
recovery_mode_email_last_sent
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

AMMAZZA Virtual Try-On for Jewellery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,472 ▼26313.57 ▼0.670.69 ▼1.1619.14 ▼32.28
Dashboard /wp-admin2,222 ▲344.85 ▼0.06114.63 ▲0.8647.38 ▲6.38
Posts /wp-admin/edit.php45 ▼2,0470.44 ▼1.550.08 ▼39.579.79 ▼25.46
Add New Post /wp-admin/post-new.php1,532 ▼223.27 ▲0.15684.37 ▲20.4170.79 ▲17.90
Media Library /wp-admin/upload.php1,404 ▲164.24 ▼0.08101.55 ▼0.7246.09 ▲3.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • recovery_mode_email_last_sent

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

ammazza-webar/webAr.php 85% from 13 tests

This is the main PHP file of "AMMAZZA Virtual Try-On for Jewellery" 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
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ammazza-webar.php" instead of "webAr.php")
  • Domain Path: The domain path folder was not found ("/languages")

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
Everything looks great! No dangerous files found in this plugin246 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35890192
CSS17040
JavaScript17014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin