Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼309.00ms] Passed 4 tests
A check of server-side resources used by 360 Product Detait View
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 57.52 ▲6.64 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.36 ▼2.86 |
Posts /wp-admin/edit.php | 3.65 ▲0.02 | 35.86 ▼1.41 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 102.29 ▼1,228.02 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.15 ▼3.69 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for 360 Product Detait View
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,898 ▲144 | 16.25 ▲0.57 | 9.68 ▲3.48 | 2.00 ▼0.51 |
Dashboard /wp-admin | 2,896 ▲38 | 6.13 ▼0.07 | 116.04 ▼15.66 | 155.34 ▼4.83 |
Posts /wp-admin/edit.php | 2,692 ▼2 | 3.23 ▼0.01 | 63.87 ▼2.58 | 140.25 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,764 ▲103 | 17.70 ▲1.62 | 399.20 ▲3.22 | 156.87 ▲7.05 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.54 ▲0.01 | 141.03 ▼3.65 | 186.39 ▼4.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/360-product-view/public/partials/yup-360-product-public-display.php
- > /wp-content/plugins/360-product-view/admin/partials/yup-360-product-admin-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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (360 Product Configuration), #2 (360 Product Gallery Default)
360-product-view/yup-360-product.php 85% from 13 tests
The entry point to "360 Product Detait View" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("360-product-view.php" instead of "yup-360-product.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected485 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 were no cyclomatic complexity issued detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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 |
public/images/browser_logos-64.png | 33.64KB | 9.18KB | ▼ 72.73% |
public/images/fs.png | 3.66KB | 0.74KB | ▼ 79.86% |
public/images/360.png | 7.61KB | 3.06KB | ▼ 59.79% |
public/images/sprites.png | 3.24KB | 2.33KB | ▼ 28.22% |
public/images/360_icon.png | 63.09KB | 0.85KB | ▼ 98.66% |