77% wizart-home-interior-design-solutions

Code Review | Wizart AR Room Visualizer WordPress Plugin: New Standard of Selling Home Improvement Products

WordPress plugin Wizart AR Room Visualizer WordPress Plugin: New Standard of Selling Home Improvement Products scored77%from 54 tests.

About plugin

  • Plugin page: wizart-home-inter...
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2020
  • Latest release: Jul 31, 2023
  • Number of updates: 50
  • Update frequency: every 19.0 days
  • Top authors: wizartvisualizer (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /2,764 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.44ms] Passed 4 tests

A check of server-side resources used by Wizart AR Room Visualizer WordPress Plugin: New Standard of Selling Home Improvement Products
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0635.38 ▼4.37
Dashboard /wp-admin3.37 ▲0.0347.79 ▼13.48
Posts /wp-admin/edit.php3.48 ▲0.1346.37 ▲0.05
Add New Post /wp-admin/post-new.php5.95 ▲0.0790.04 ▼11.96
Media Library /wp-admin/upload.php3.29 ▲0.0734.16 ▲0.34
Wizart Integration /wp-admin/options-general.php?page=wizart3.3234.91

Server storage [IO: ▲6.94MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/wizart-home-interior-design-solutions/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/wizart-home-interior-design-solutions/assets/icon-256\321\205256.png"
    • (new file) "wp-content/plugins/wizart-home-interior-design-solutions/assets/icon-128\321\205128.png"
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Wizart AR Room Visualizer WordPress Plugin: New Standard of Selling Home Improvement Products: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.55 ▼0.881.70 ▲0.0942.51 ▼3.81
Dashboard /wp-admin2,212 ▲205.88 ▲0.92109.79 ▼2.0141.76 ▼3.65
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0938.58 ▲2.5939.24 ▲3.32
Add New Post /wp-admin/post-new.php1,542 ▼017.98 ▼0.16596.28 ▼7.8552.64 ▼10.70
Media Library /wp-admin/upload.php1,385 ▲34.22 ▲0.0294.44 ▼2.6341.99 ▲0.12
Wizart Integration /wp-admin/options-general.php?page=wizart1,1512.0322.8628.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wizart-home-interior-design-solutions/public/partials/wizart-public-display-iframe.php
    • > /wp-content/plugins/wizart-home-interior-design-solutions/public/partials/wizart-public-display-svg.php
    • > /wp-content/plugins/wizart-home-interior-design-solutions/public/partials/wizart-public-display-iframe-svg.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wizart-home-interior-design-solutions/admin/views/settings.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt is a good inspiration

wizart-home-interior-design-solutions/wizart.php 85% from 13 tests

The main file in "Wizart AR Room Visualizer WordPress Plugin: New Standard of Selling Home Improvement Products" v. 1.0.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 385 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wizart-home-interior-design-solutions.php" instead of "wizart.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,931 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP11229655940
SVG100701
JavaScript4379188
CSS3130102

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity15.80
▷ Minimum class complexity3.00
▷ Maximum class complexity53.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods61
▷ Static methods11.64%
▷ Public methods3760.66%
▷ Protected methods58.20%
▷ Private methods1931.15%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants40
▷ Global constants12.50%
▷ Class constants3997.50%
▷ Public constants39100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128х128.png14.98KB7.02KB▼ 53.11%
assets/icon-256х256.png40.72KB19.08KB▼ 53.13%