Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼2.28ms] Passed 4 tests
An overview of server-side resources used by 360 Javascript Viewer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 34.72 ▼7.33 |
Dashboard /wp-admin | 3.59 ▲0.28 | 50.13 ▲1.43 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 54.69 ▲11.42 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 82.64 ▼4.98 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.32 ▲1.75 |
Autorotate /wp-admin/admin.php?page=jsv-autorotate-settings | 3.43 | 37.50 |
About /wp-admin/admin.php?page=jsv-about | 3.43 | 34.14 |
Local configuration /wp-admin/admin.php?page=jsv-dedicated-settings | 3.43 | 35.57 |
Notifier /wp-admin/admin.php?page=jsv-license-notifier | 3.42 | 36.31 |
360 Javascript Viewer /wp-admin/admin.php?page=jsv-main-settings | 3.42 | 36.73 |
Remove Powered By /wp-admin/admin.php?page=jsv-license-settings | 3.43 | 37.43 |
Remote configuration /wp-admin/admin.php?page=jsv-cloud-settings | 3.43 | 35.65 |
ACF Settings /wp-admin/admin.php?page=jsv-acf-settings | 3.43 | 36.17 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_360-javasciptviewer-widget |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for 360 Javascript Viewer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,063 ▲317 | 15.29 ▲0.91 | 5.41 ▲3.63 | 38.58 ▼6.30 |
Dashboard /wp-admin | 2,421 ▲230 | 6.52 ▲1.64 | 134.52 ▲23.23 | 95.29 ▲51.28 |
Posts /wp-admin/edit.php | 2,339 ▲253 | 3.38 ▲1.36 | 53.95 ▲16.25 | 73.11 ▲38.83 |
Add New Post /wp-admin/post-new.php | 6,433 ▲4,910 | 27.83 ▲4.64 | 903.80 ▲256.89 | 38.21 ▼13.38 |
Media Library /wp-admin/upload.php | 1,475 ▲87 | 4.16 ▼0.03 | 79.24 ▼20.03 | 57.89 ▲13.85 |
Autorotate /wp-admin/admin.php?page=jsv-autorotate-settings | 1,141 | 3.05 | 39.76 | 81.57 |
About /wp-admin/admin.php?page=jsv-about | 1,114 | 3.00 | 39.32 | 62.08 |
Local configuration /wp-admin/admin.php?page=jsv-dedicated-settings | 1,173 | 3.15 | 40.15 | 74.74 |
Notifier /wp-admin/admin.php?page=jsv-license-notifier | 1,125 | 3.23 | 41.83 | 79.91 |
360 Javascript Viewer /wp-admin/admin.php?page=jsv-main-settings | 1,136 | 3.00 | 39.52 | 81.93 |
Remove Powered By /wp-admin/admin.php?page=jsv-license-settings | 1,121 | 3.14 | 39.43 | 61.99 |
Remote configuration /wp-admin/admin.php?page=jsv-cloud-settings | 1,101 | 3.15 | 38.40 | 61.79 |
ACF Settings /wp-admin/admin.php?page=jsv-acf-settings | 1,119 | 3.20 | 36.97 | 61.61 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_360-javasciptviewer-widget
- db_upgraded
Smoke tests 50% 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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
- 20× 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 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 Warning
Use of undefined constant JSV360_VERSION - assumed 'JSV360_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/360deg-javascript-viewer/blocks/block.asset.php on line 4
- > 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 '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_acf.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_dedicated.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Screenshots: Screenshot #7 (Control the viewer with the elementor widget) image not found
360deg-javascript-viewer/360-jsv.php 92% from 13 tests
The principal PHP file in "360 Javascript Viewer" v. 1.7.11 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected20,829 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 17,696 |
PHP | 38 | 307 | 335 | 1,686 |
JavaScript | 6 | 75 | 68 | 619 |
Sass | 12 | 73 | 4 | 382 |
CSS | 3 | 14 | 2 | 371 |
SVG | 2 | 0 | 0 | 75 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 4 | 4.82% |
▷ Public methods | 53 | 63.86% |
▷ Protected methods | 2 | 2.41% |
▷ Private methods | 28 | 33.73% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 4 | 14.29% |
▷ Class constants | 24 | 85.71% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 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/cloud.png | 7.74KB | 4.24KB | ▼ 45.20% |
admin/img/local.png | 33.41KB | 15.53KB | ▼ 53.52% |
admin/img/first_image_select.png | 36.01KB | 13.67KB | ▼ 62.04% |