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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.80 | 41.75 ▼2.78 |
Dashboard /wp-admin | 4.17 ▲0.82 | 48.67 ▼10.10 |
Posts /wp-admin/edit.php | 4.22 ▲0.86 | 56.40 ▲5.68 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.89 | 100.64 ▲4.39 |
Media Library /wp-admin/upload.php | 4.11 ▲0.87 | 45.21 ▲9.41 |
Settings /wp-admin/admin.php?page=verge3d_settings | 4.11 | 39.77 |
Orders /wp-admin/admin.php?page=verge3d_order | 4.08 | 38.21 |
Products /wp-admin/admin.php?page=verge3d_product | 4.08 | 36.88 |
Applications /wp-admin/admin.php?page=verge3d_app | 4.08 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲139 | 14.26 ▼0.06 | 2.08 ▲0.19 | 40.65 ▼1.28 |
Dashboard /wp-admin | 2,244 ▲67 | 5.56 ▼0.09 | 95.76 ▼3.19 | 78.52 ▲34.74 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 1.95 ▼0.07 | 39.83 ▲1.57 | 38.81 ▲3.99 |
Add New Post /wp-admin/post-new.php | 1,739 ▲208 | 22.27 ▼0.80 | 774.61 ▲65.11 | 43.72 ▼8.74 |
Media Library /wp-admin/upload.php | 1,455 ▲52 | 4.20 ▲0.00 | 103.73 ▲3.98 | 74.40 ▲30.42 |
Settings /wp-admin/admin.php?page=verge3d_settings | 1,853 | 3.06 | 42.08 | 98.03 |
Orders /wp-admin/admin.php?page=verge3d_order | 1,148 | 2.00 | 23.85 | 26.66 |
Products /wp-admin/admin.php?page=verge3d_product | 1,037 | 2.00 | 27.81 | 24.86 |
Applications /wp-admin/admin.php?page=verge3d_app | 1,036 | 2.00 | 27.25 | 27.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,040 | 91 | 5,316 |
SVG | 2 | 2 | 2 | 868 |
JavaScript | 5 | 103 | 32 | 375 |
CSS | 2 | 55 | 0 | 218 |
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 code | 0.38 |
Average class complexity | 12.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 91.49% |
▷ Protected methods | 4 | 8.51% |
▷ Private methods | 0 | 0.00% |
Functions | 152 | |
▷ Named functions | 146 | 96.05% |
▷ Anonymous functions | 6 | 3.95% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/product_thumbnail.png | 27.16KB | 12.03KB | ▼ 55.72% |