Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼287.68ms] Passed 4 tests
A check of server-side resources used by 360 Javascript Viewer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.21 | 62.70 ▲11.31 |
Dashboard /wp-admin | 3.58 ▲0.17 | 45.84 ▲11.82 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 40.91 ▲3.90 |
Add New Post /wp-admin/post-new.php | 7.09 ▲0.12 | 92.60 ▼1,167.13 |
Media Library /wp-admin/upload.php | 3.51 ▲0.22 | 25.79 ▲1.21 |
Notifier /wp-admin/admin.php?page=jsv-license-notifier | 3.51 | 27.66 |
Autorotate /wp-admin/admin.php?page=jsv-autorotate-settings | 3.51 | 27.46 |
360 Javascript Viewer /wp-admin/admin.php?page=jsv-main-settings | 3.51 | 26.15 |
Remove Powered By /wp-admin/admin.php?page=jsv-license-settings | 3.51 | 41.31 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_360-javasciptviewer-widget |
Browser metrics Passed 4 tests
360 Javascript Viewer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,081 ▲327 | 17.75 ▲2.18 | 9.54 ▲3.03 | 2.29 ▼0.31 |
Dashboard /wp-admin | 3,172 ▲318 | 8.02 ▲1.76 | 140.98 ▲3.79 | 175.59 ▲11.04 |
Posts /wp-admin/edit.php | 3,003 ▲346 | 4.63 ▲1.40 | 77.20 ▲13.39 | 158.92 ▲12.65 |
Add New Post /wp-admin/post-new.php | 2,026 ▲275 | 20.98 ▼1.00 | 400.99 ▼50.20 | 188.30 ▲31.77 |
Media Library /wp-admin/upload.php | 1,783 ▲88 | 5.59 ▲0.07 | 103.15 ▼33.17 | 201.43 ▲13.53 |
Notifier /wp-admin/admin.php?page=jsv-license-notifier | 1,424 | 4.23 | 72.30 | 137.28 |
Autorotate /wp-admin/admin.php?page=jsv-autorotate-settings | 1,444 | 4.25 | 67.07 | 126.64 |
360 Javascript Viewer /wp-admin/admin.php?page=jsv-main-settings | 1,469 | 4.41 | 68.01 | 161.56 |
Remove Powered By /wp-admin/admin.php?page=jsv-license-settings | 1,432 | 4.23 | 133.64 | 177.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_360-javasciptviewer-widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/360deg-javascript-viewer/admin/partials/button.php
- > /wp-content/plugins/360deg-javascript-viewer/admin/partials/footer.php
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/360deg-javascript-viewer/admin/partials/header.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/360deg-javascript-viewer/admin/partials/header.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/360deg-javascript-viewer/admin/partials/header.php:12
- > PHP Fatal error
Uncaught Error: Class 'JSV_360_ADMIN_PAGE_ABSTRACT' not found in wp-content/plugins/360deg-javascript-viewer/admin/pages/class-jsv-360-admin_page_autorotate.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/360deg-javascript-viewer/widgets/class-jsv-360-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'JSV_360_ADMIN_PAGE_ABSTRACT' not found in wp-content/plugins/360deg-javascript-viewer/admin/pages/class-jsv-360-admin_page_notifier.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/360deg-javascript-viewer/admin/partials/header.php:12
- > PHP Fatal error
Uncaught Error: Class 'JSV_360_ADMIN_PAGE_ABSTRACT' not found in wp-content/plugins/360deg-javascript-viewer/admin/pages/class-jsv-360-admin_page_license.php:3
- > PHP Fatal error
Uncaught Error: Class 'JSV_360_ADMIN_PAGE_ABSTRACT' not found in wp-content/plugins/360deg-javascript-viewer/admin/pages/class-jsv-360-admin_page_index.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/360deg-javascript-viewer/admin/partials/header.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jsv-license-settings
- > Network (severe)
wp-content/plugins/360deg-javascript-viewer/admin/scss/jsv-360-admin.css?ver=1.6.15 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jsv-license-settings
- > Network (severe)
wp-content/plugins/360-jsv/admin/img/sign-130.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: 360 image, 360 product viewer, 360 product view, 360 product rotation, 360 view software...
360deg-javascript-viewer/360-jsv.php 92% from 13 tests
The principal PHP file in "360 Javascript Viewer" v. 1.6.15 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("360deg-javascript-viewer.php" instead of "360-jsv.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,558 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 206 | 277 | 1,017 |
JavaScript | 4 | 42 | 19 | 251 |
Sass | 7 | 32 | 3 | 187 |
SVG | 2 | 0 | 0 | 75 |
CSS | 2 | 5 | 1 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 2 | 3.39% |
▷ Public methods | 40 | 67.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 32.20% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 3 | 16.67% |
▷ Class constants | 15 | 83.33% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/icon.png | 3.39KB | 2.34KB | ▼ 30.89% |
admin/img/sign-130.png | 6.54KB | 4.42KB | ▼ 32.38% |
admin/img/copy_code.png | 23.31KB | 9.57KB | ▼ 58.96% |
admin/img/first_image_select.png | 36.01KB | 13.67KB | ▼ 62.04% |