Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲5.56MB] [CPU: ▲45.31ms] 75% from 4 tests
Analyzing server-side resources used by 3D viewer - Embed 3D Models on WordPress
Please fix the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.56MB on /wp-admin/admin.php?page=3d-viewer-pricing-manual)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.94 ▲5.48 | 80.15 ▲42.65 |
Dashboard /wp-admin | 8.96 ▲5.66 | 107.78 ▲55.43 |
Posts /wp-admin/edit.php | 8.97 ▲5.60 | 95.97 ▲45.07 |
Add New Post /wp-admin/post-new.php | 11.39 ▲5.50 | 138.33 ▲43.36 |
Media Library /wp-admin/upload.php | 8.97 ▲5.73 | 86.25 ▲50.16 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.97 | 80.75 |
Upgrade /wp-admin/admin.php?page=3d-viewer-pricing-manual | 8.97 | 85.05 |
Server storage [IO: ▲8.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 444 new files
Database: no new tables, 12 new options
New WordPress options |
---|
model_viewer_import_ver |
can_compress_scripts |
bp3d_imported |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
fs_debug_mode |
_bp3d_settings_ |
fs_active_plugins |
... |
Browser metrics Passed 4 tests
A check of browser resources used by 3D viewer - Embed 3D Models on WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲155 | 13.37 ▼0.95 | 5.14 ▲3.46 | 36.82 ▼3.17 |
Dashboard /wp-admin | 2,313 ▲138 | 5.10 ▼0.53 | 110.15 ▼6.70 | 65.55 ▲22.55 |
Posts /wp-admin/edit.php | 2,219 ▲119 | 2.33 ▲0.37 | 37.28 ▼5.55 | 56.16 ▲17.46 |
Add New Post /wp-admin/post-new.php | 6,273 ▲4,747 | 28.80 ▲5.71 | 1,081.11 ▲469.78 | 54.38 ▼9.12 |
Media Library /wp-admin/upload.php | 1,518 ▲118 | 4.63 ▲0.48 | 112.84 ▲14.99 | 65.14 ▲23.20 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,123 | 2.10 | 28.19 | 36.18 |
Upgrade /wp-admin/admin.php?page=3d-viewer-pricing-manual | 2,110 | 3.31 | 79.54 | 159.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/3d-viewer/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 12 options in the database
- fs_accounts
- bp3d_imported
- widget_theysaidso_widget
- fs_active_plugins
- can_compress_scripts
- widget_recent-comments
- model_viewer_import_ver
- db_upgraded
- _bp3d_settings_
- fs_debug_mode
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/3d-viewer/inc/Shortcode/fullscreen_buttons.php
- > /wp-content/plugins/3d-viewer/inc/Template/fullscreen_buttons.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/3d-viewer/inc/Template/woocommerce_carousel.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/3d-viewer/inc/Shortcode/style.php:2
- > PHP Warning
Use of undefined constant BP3D_VERSION - assumed 'BP3D_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/3d-viewer/3d-viewer-block/dist/editor.asset.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3d-viewer/admin/ads/submenu.php:17
- > PHP Warning
Use of undefined constant BP3D_VERSION - assumed 'BP3D_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/3d-viewer/dist/3d-viewer-frontend.asset.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/3d-viewer/inc/Shortcode/3d_viewer.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function BP3D\\Base\\add_action() in wp-content/plugins/3d-viewer/inc/Base/ExtendMimeType.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3d-viewer/3d-viewer-block/inc/block.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function BP3D\\Base\\bp3dv_fs() in wp-content/plugins/3d-viewer/inc/Base/BlackFriday.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/3d-viewer/inc/Woocommerce/config.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=3d-viewer-pricing-manual
- > Security (severe) in unknown
https://js.freemius.com/vendors/nojquery.ba-postmessage.min.js?v=180 11 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://missbasin.s2-tastewp.com') does not match the recipient window's origin ('').
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: threejs, 3d, widget, display, 3d model viewer
3d-viewer/3d-viewer.php 92% from 13 tests
Analyzing the main PHP file in "3D viewer - Embed 3D Models on WordPress" version 1.3.21
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin77,858 lines of code in 343 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 245 | 12,059 | 19,180 | 52,002 |
JavaScript | 22 | 1,391 | 1,285 | 7,245 |
PO File | 21 | 3,452 | 4,274 | 7,030 |
Sass | 16 | 969 | 3 | 5,667 |
CSS | 29 | 458 | 573 | 5,630 |
JSON | 6 | 0 | 0 | 224 |
Markdown | 1 | 10 | 0 | 45 |
SVG | 3 | 1 | 0 | 15 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 44.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 141 | |
▷ Abstract classes | 4 | 2.84% |
▷ Concrete classes | 137 | 97.16% |
▷ Final classes | 2 | 1.46% |
Methods | 1,656 | |
▷ Static methods | 261 | 15.76% |
▷ Public methods | 1,250 | 75.48% |
▷ Protected methods | 20 | 1.21% |
▷ Private methods | 386 | 23.31% |
Functions | 142 | |
▷ Named functions | 130 | 91.55% |
▷ Anonymous functions | 12 | 8.45% |
Constants | 158 | |
▷ Global constants | 105 | 66.46% |
▷ Class constants | 53 | 33.54% |
▷ Public constants | 53 | 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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/csf/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
public/transparent.png | 0.14KB | 0.13KB | ▼ 3.60% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |