84% verge3d

Code Review | Verge3D Publishing and E-Commerce

WordPress plugin Verge3D Publishing and E-Commerce scored84%from 54 tests.

About plugin

  • Plugin page: verge3d
  • Plugin version: 4.5.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2018
  • Latest release: Nov 13, 2023
  • Number of updates: 27
  • Update frequency: every 69.7 days
  • Top authors: soft8soft (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /12,362 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.84MB] [CPU: ▼0.70ms] Passed 4 tests

An overview of server-side resources used by Verge3D Publishing and E-Commerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.8041.75 ▼2.78
Dashboard /wp-admin4.17 ▲0.8248.67 ▼10.10
Posts /wp-admin/edit.php4.22 ▲0.8656.40 ▲5.68
Add New Post /wp-admin/post-new.php6.78 ▲0.89100.64 ▲4.39
Media Library /wp-admin/upload.php4.11 ▲0.8745.21 ▲9.41
Settings /wp-admin/admin.php?page=verge3d_settings4.1139.77
Orders /wp-admin/admin.php?page=verge3d_order4.0838.21
Products /wp-admin/admin.php?page=verge3d_product4.0836.88
Applications /wp-admin/admin.php?page=verge3d_app4.0835.67

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 59 new options
New WordPress options
v3d_file_api
v3d_order_email_update_content_user
v3d_order_email_new_notify
v3d_order_email_new_notify_user
v3d_currency
v3d_order_email_new_subject_user
v3d_invoice_notes
v3d_require_billing_address
v3d_merchant_state
v3d_require_shipping_address
...

Browser metrics Passed 4 tests

Verge3D Publishing and E-Commerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲13914.26 ▼0.062.08 ▲0.1940.65 ▼1.28
Dashboard /wp-admin2,244 ▲675.56 ▼0.0995.76 ▼3.1978.52 ▲34.74
Posts /wp-admin/edit.php2,167 ▲671.95 ▼0.0739.83 ▲1.5738.81 ▲3.99
Add New Post /wp-admin/post-new.php1,739 ▲20822.27 ▼0.80774.61 ▲65.1143.72 ▼8.74
Media Library /wp-admin/upload.php1,455 ▲524.20 ▲0.00103.73 ▲3.9874.40 ▲30.42
Settings /wp-admin/admin.php?page=verge3d_settings1,8533.0642.0898.03
Orders /wp-admin/admin.php?page=verge3d_order1,1482.0023.8526.66
Products /wp-admin/admin.php?page=verge3d_product1,0372.0027.8124.86
Applications /wp-admin/admin.php?page=verge3d_app1,0362.0027.2527.12

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

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: product_id in wp-content/plugins/verge3d/templates/product_admin_form.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/verge3d/app.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verge3d/file_storage.php:71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/verge3d/templates/order_failed.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/verge3d/order.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/verge3d/product.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/verge3d/product.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verge3d/download_file.php:27
    • > PHP Notice
      Undefined variable: order_id in wp-content/plugins/verge3d/templates/order_admin_form.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verge3d/woo_product.php:16

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ecommerce, 3d, 3dweb, verge3d, webgl

verge3d/verge3d.php 92% from 13 tests

The primary PHP file in "Verge3D Publishing and E-Commerce" version 4.5.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 228 characters long)

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
There were no executable files found in this plugin6,777 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP191,040915,316
SVG222868
JavaScript510332375
CSS2550218

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.80
▷ Minimum class complexity5.00
▷ Maximum class complexity21.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods4391.49%
▷ Protected methods48.51%
▷ Private methods00.00%
Functions152
▷ Named functions14696.05%
▷ Anonymous functions63.95%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.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
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/product_thumbnail.png27.16KB12.03KB▼ 55.72%