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.36MB] [CPU: ▲37.18ms] 75% from 4 tests
A check of server-side resources used by Panorama Viewer - 360 Degree Image + Video Viewer
Please fix the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.36MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.42 | 90.43 ▲49.73 |
Dashboard /wp-admin | 8.90 ▲5.55 | 85.42 ▲18.36 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 86.63 ▲32.53 |
Add New Post /wp-admin/post-new.php | 10.80 ▲4.91 | 151.22 ▲48.08 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 88.92 ▲50.77 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.90 | 73.12 |
Server storage [IO: ▲6.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 385 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
fs_debug_mode |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Panorama Viewer - 360 Degree Image + Video Viewer: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 13.35 ▼0.86 | 1.76 ▲0.12 | 34.01 ▼6.49 |
Dashboard /wp-admin | 2,256 ▲53 | 5.85 ▲0.92 | 116.78 ▲6.95 | 46.62 ▲4.44 |
Posts /wp-admin/edit.php | 2,139 ▲36 | 2.04 ▼0.01 | 37.83 ▼2.61 | 39.22 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 22.33 ▲4.62 | 594.14 ▼111.47 | 46.86 ▼19.25 |
Media Library /wp-admin/upload.php | 1,435 ▲41 | 4.28 ▲0.02 | 102.85 ▼2.05 | 48.12 ▲3.74 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,103 | 2.10 | 29.03 | 29.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/panorama/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- fs_accounts
- widget_recent-comments
- db_upgraded
- fs_debug_mode
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/panorama/admin/ads/submenu.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/panorama/public/shortcode/shortcode.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/panorama/inc/Woocommerce/config.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% 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
5 plugin tags: krpano, 3d, panorama, 360 degree, virtual tour
panorama/panorama.php 77% from 13 tests
This is the main PHP file of "Panorama Viewer - 360 Degree Image + Video Viewer" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected79,204 lines of code in 306 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 218 | 11,592 | 18,870 | 50,195 |
JavaScript | 18 | 1,391 | 597 | 8,753 |
Sass | 21 | 1,435 | 3 | 7,983 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
CSS | 25 | 401 | 530 | 5,541 |
Markdown | 1 | 68 | 0 | 214 |
XML | 1 | 3 | 0 | 16 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 51.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 118 | |
▷ Abstract classes | 4 | 3.39% |
▷ Concrete classes | 114 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,536 | |
▷ Static methods | 246 | 16.02% |
▷ Public methods | 1,144 | 74.48% |
▷ Protected methods | 17 | 1.11% |
▷ Private methods | 375 | 24.41% |
Functions | 133 | |
▷ Named functions | 131 | 98.50% |
▷ Anonymous functions | 2 | 1.50% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 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
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/logo.png | 17.43KB | 8.45KB | ▼ 51.52% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
inc/csf/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |