Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.59ms] Passed 4 tests
Server-side resources used by Emb3D Model Viewer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.17 ▼4.00 |
Dashboard /wp-admin | 3.52 ▲0.22 | 55.23 ▲7.41 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 59.00 ▲10.78 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 96.30 ▼7.38 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.12 ▲1.60 |
Overview /wp-admin/admin.php?page=emb3d-model-viewer | 3.38 | 38.08 |
Upgrade to Premium /wp-admin/admin.php?page=emv-upgrade | 3.21 | 24.76 |
Server storage [IO: ▲5.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Emb3D Model Viewer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲218 | 15.69 ▲1.42 | 6.16 ▲4.59 | 41.32 ▲0.10 |
Dashboard /wp-admin | 2,385 ▲211 | 6.22 ▲0.61 | 110.41 ▲21.02 | 41.88 ▼2.75 |
Posts /wp-admin/edit.php | 2,311 ▲211 | 3.35 ▲1.36 | 57.95 ▲21.45 | 35.94 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.34 ▲0.35 | 668.62 ▲9.58 | 37.03 ▼18.95 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.19 ▲0.00 | 82.87 ▼24.65 | 44.79 ▼0.46 |
Overview /wp-admin/admin.php?page=emb3d-model-viewer | 2,605 | 10.14 | 193.06 | 111.58 |
Upgrade to Premium /wp-admin/admin.php?page=emv-upgrade | 1,300 | 19.83 | 678.50 | 192.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: registration_key in wp-content/plugins/emb3d-model-viewer/public/partials/emb3d-model-viewer-woo.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/emb3d-model-viewer/admin/partials/emb3d-model-viewer-meta-box-output.php:2
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/emb3d-model-viewer/includes/class-emb3d-model-viewer-widget.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/emb3d-model-viewer/admin/partials/emb3d-model-viewer-overview.php:6
- > PHP Fatal error
Uncaught Error: Class 'Emb3D' not found in wp-content/plugins/emb3d-model-viewer/public/partials/emb3d-model-viewer-woo.php:2
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=emv-upgrade
- > Rendering (warning) in unknown
https://www.emb3d.com/emb3d-plugin-wordpress/?hostname=wp.com - [.WebGL-0x3c2404e63800]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
- > GET request to /wp-admin/admin.php?page=emv-upgrade
- > Rendering (warning) in unknown
https://www.emb3d.com/emb3d-plugin-wordpress/?hostname=wp.com - [.WebGL-0x3c2404e63800]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: 3d, 3d model viewer, widget
emb3d-model-viewer/emb3d-model-viewer.php Passed 13 tests
"Emb3D Model Viewer" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
3D Model Viewer for Woocommerce and Elementor
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,933 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 75 | 286 | 1,591 |
PHP | 13 | 165 | 487 | 958 |
CSS | 3 | 56 | 7 | 257 |
PO File | 1 | 49 | 65 | 124 |
JSON | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 42 | 84.00% |
▷ Protected methods | 3 | 6.00% |
▷ Private methods | 5 | 10.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 31 | 100.00% |
▷ Public constants | 31 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.35MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/mobile-emb3d.png | 337.75KB | 94.05KB | ▼ 72.15% |
public/images/media/model.png | 0.62KB | 0.64KB | 0.00% |
admin/images/logo.png | 24.32KB | 9.99KB | ▼ 58.94% |