Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.49MB] [CPU: ▼14.12ms] Passed 4 tests
A check of server-side resources used by Splendid Product Viewer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.93 ▲1.65 |
Dashboard /wp-admin | 3.47 ▲0.17 | 48.66 ▼5.52 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 45.84 ▼2.59 |
Add New Post /wp-admin/post-new.php | 3.60 ▼2.29 | 46.62 ▼43.77 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 30.71 ▼4.59 |
Add New Product /wp-admin/post-new.php?post_type=pv | 3.41 | 41.54 |
Product Viewer /wp-admin/edit.php?post_type=pv | 3.43 | 38.49 |
Product Viewer /wp-admin/edit-tags.php?taxonomy=pv_type&post_type=pv | 3.38 | 33.52 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Splendid Product Viewer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲184 | 13.86 ▼0.51 | 16.78 ▲14.48 | 48.08 ▲4.32 |
Dashboard /wp-admin | 2,232 ▲41 | 5.85 ▼0.22 | 108.79 ▲3.79 | 81.24 ▲36.64 |
Posts /wp-admin/edit.php | 2,133 ▲47 | 2.05 ▲0.08 | 35.01 ▲0.03 | 35.40 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,551 ▲22 | 23.07 ▲4.92 | 789.97 ▲103.63 | 37.68 ▼36.91 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.08 ▼0.12 | 130.64 ▲26.65 | 51.09 ▲5.23 |
Add New Product /wp-admin/post-new.php?post_type=pv | 2,498 | 7.71 | 173.69 | 146.82 |
Product Viewer /wp-admin/edit.php?post_type=pv | 1,108 | 1.94 | 31.97 | 30.95 |
Product Viewer /wp-admin/edit-tags.php?taxonomy=pv_type&post_type=pv | 1,303 | 2.18 | 25.68 | 30.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Warning in wp-content/plugins/splendid-product-viewer/class_pv_backend.php+105
Illegal string offset 'jpg|jpeg|jpe'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Warning in wp-content/plugins/splendid-product-viewer/class_pv_backend.php+106
Illegal string offset 'gif'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Warning in wp-content/plugins/splendid-product-viewer/class_pv_backend.php+107
Illegal string offset 'png'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Warning in wp-content/plugins/splendid-product-viewer/class_pv_backend.php+108
Illegal string offset 'bmp'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Warning in wp-content/plugins/splendid-product-viewer/class_pv_backend.php+109
Illegal string offset 'tif|tiff'
- 11 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Warning in wp-includes/media.php+4142
Invalid argument supplied for foreach()
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Warning in wp-includes/media.php+4140
array_keys() expects parameter 1 to be array, string given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Notice in wp-content/plugins/splendid-product-viewer/class_pv_backend.php+324
Undefined variable: upload_path
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/splendid-product-viewer/pv_details_page.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/splendid-product-viewer/product_viewer.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLInputElement.\u003Canonymous> (/wp-content/plugins/splendid-product-viewer/js/jquery.simple-color-picker.js?ver=6.3.1:60:18)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at jQuery.fn.simpleColorPicker (/wp-content/plugins/splendid-product-viewer/js/jquery.simple-color-picker.js?ver=6.3.1:20:14)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/splendid-product-viewer/js/pv-backend-scripts.js?ver=6.3.1:4:27)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=pv
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
splendid-product-viewer/product_viewer.php 92% from 13 tests
The entry point to "Splendid Product Viewer" version 3.1.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("splendid-product-viewer.php" instead of "product_viewer.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 detected3,438 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 12 | 439 | 463 | 1,301 |
JavaScript | 5 | 359 | 378 | 1,061 |
PHP | 4 | 271 | 106 | 637 |
CSS | 4 | 22 | 22 | 439 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/150_glasses.png | 1.44KB | 0.59KB | ▼ 58.79% |
img/refresh.png | 2.05KB | 0.92KB | ▼ 55.24% |
img/bg_text_box.png | 0.94KB | 0.09KB | ▼ 89.87% |
img/150_glasses_32x32.png | 2.15KB | 1.21KB | ▼ 43.42% |