10% virtooal-try-on-mirror

Code Review | Auglio Try-on Mirror

WordPress plugin Auglio Try-on Mirror scored10%from 54 tests.

About plugin

  • Plugin page: virtooal-try-on-m...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 23, 2020
  • Latest release: Jun 15, 2023
  • Number of updates: 25
  • Update frequency: every 44.7 days
  • Top authors: virtooal (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,471 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/virtooal-try-on-mirror/src/class-virtooal-try-on-mirror-api.php+91
    Undefined offset: 1

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.65ms] Passed 4 tests

Server-side resources used by Auglio Try-on Mirror
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.02 ▼1.98
Dashboard /wp-admin3.31 ▲0.0045.36 ▼2.70
Posts /wp-admin/edit.php3.36 ▲0.0047.52 ▲3.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.88 ▲8.58
Media Library /wp-admin/upload.php3.23 ▲0.0033.84 ▲3.54

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
virtooal_settings
virtooal_try_on_mirror_version
virtooal_installation_id
virtooal_api
widget_recent-posts

Browser metrics Passed 4 tests

Auglio Try-on Mirror: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.121.70 ▼0.2637.91 ▼7.66
Dashboard /wp-admin2,209 ▲215.85 ▼0.00105.88 ▼8.6541.03 ▼0.84
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0538.57 ▲2.7435.17 ▲1.13
Add New Post /wp-admin/post-new.php1,535 ▲223.15 ▼0.06582.67 ▼46.2461.22 ▲4.39
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0298.65 ▼1.5240.62 ▼1.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 10 options in the database
    • virtooal_settings
    • virtooal_installation_id
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • virtooal_try_on_mirror_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • virtooal_api
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: woocommerce, virtual mirror, contact lenses, eye shadows, glasses...

virtooal-try-on-mirror/virtooal-try-on-mirror.php 92% from 13 tests

This is the main PHP file of "Auglio Try-on Mirror" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.0.0")

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 plugin862 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP1210763855
CSS1007

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.75
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods2670.27%
▷ Protected methods00.00%
▷ Private methods1129.73%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected