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.08MB] [CPU: ▼7.16ms] Passed 4 tests
Server-side resources used by 360 Product Detait View
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.07 ▲4.64 |
Dashboard /wp-admin | 3.38 ▲0.07 | 47.86 ▼2.98 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.04 ▼2.32 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 85.85 ▼24.50 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.23 ▲1.15 |
Server storage [IO: ▲0.36MB] [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: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
360 Product Detait View: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲90 | 13.41 ▼0.84 | 7.97 ▲6.22 | 39.80 ▼7.42 |
Dashboard /wp-admin | 2,199 ▲22 | 5.54 ▼0.01 | 86.37 ▼4.88 | 40.01 ▼0.30 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.03 ▲0.00 | 35.24 ▲0.18 | 36.92 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,530 ▼5 | 23.18 ▲5.02 | 632.11 ▼30.25 | 47.89 ▼15.38 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▲0.07 | 101.61 ▼6.29 | 43.21 ▼4.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/360-product-view/admin/partials/yup-360-product-admin-display.php
- > /wp-content/plugins/360-product-view/public/partials/yup-360-product-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (360 Product Configuration), #2 (360 Product Gallery Default)
360-product-view/yup-360-product.php 85% from 13 tests
The main PHP file in "360 Product Detait View" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("360-product-view.php" instead of "yup-360-product.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin485 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 177 | 566 | 369 |
CSS | 2 | 5 | 32 | 92 |
JavaScript | 3 | 9 | 49 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 90.62KB | 36.46KB | ▼ 59.76% |
public/images/fs.png | 3.66KB | 0.74KB | ▼ 79.86% |
public/images/sprites.png | 3.24KB | 2.33KB | ▼ 28.22% |
screenshot-1.png | 43.95KB | 12.22KB | ▼ 72.19% |
public/images/360_icon.png | 63.09KB | 0.85KB | ▼ 98.66% |