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
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.12ms] Passed 4 tests
An overview of server-side resources used by 360 Product Rotation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 45.66 ▲3.20 |
Dashboard /wp-admin | 3.52 ▲0.21 | 57.66 ▼16.54 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 51.66 ▼5.03 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 103.90 ▲3.06 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.46 ▼1.95 |
360° Views /wp-admin/upload.php?page=yofla-360-media | 3.39 | 31.55 |
360° Product Rotation /wp-admin/options-general.php?page=yofla-360-admin | 3.41 | 35.27 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 7 new options
New WordPress options |
---|
yofla_360_version |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by 360 Product Rotation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲42 | 14.37 ▼0.35 | 2.15 ▲0.57 | 42.56 ▼3.31 |
Dashboard /wp-admin | 2,205 ▲28 | 5.61 ▼0.05 | 81.84 ▼19.85 | 38.11 ▼8.34 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.02 | 34.55 ▼6.97 | 33.82 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 18.44 ▼4.68 | 613.59 ▼162.24 | 74.74 ▲15.39 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.11 ▼0.14 | 101.54 ▼25.48 | 45.06 ▼8.60 |
360° Views /wp-admin/upload.php?page=yofla-360-media | 807 | 2.17 | 26.90 | 29.89 |
360° Product Rotation /wp-admin/options-general.php?page=yofla-360-admin | 920 | 2.00 | 22.69 | 27.75 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- yofla_360_version
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/upload.php?page=yofla-360-media
- > Notice in wp-content/plugins/360-product-rotation/includes/class-yofla360-addmedia.php+93
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/360-product-rotation/includes/yofla_3drt/lib/yofla/get_page_for_iframe.php
- > /wp-content/plugins/360-product-rotation/includes/iframe.php
- > /wp-content/plugins/360-product-rotation/includes/yofla_3drt/lib/yofla/get_config_file.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/upload.php?page=yofla-360-media
- > 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: selfHostedProjectsListData is not defined" "ReferenceError: selfHostedProjectsListData is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/360-product-rotation//js/add-media.js?ver=1.0.0:75:33)\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/upload.php?page=yofla-360-media
- > 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 ReferenceError: selfHostedProjectsListData is not defined
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: 3d product viewer, 360 product viewer, 360 view software, 360, 360 product rotation...
360-product-rotation/360-product-rotation.php Passed 13 tests
The main PHP script in "360 Product Rotation" version 1.5.8 is automatically included on every request by WordPress
74 characters long description:
360 Product Rotation :: creates a 360 product view from a series of photos
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,899 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 817 | 1,268 | 2,877 |
CSS | 7 | 150 | 71 | 593 |
JavaScript | 5 | 89 | 117 | 408 |
INI | 1 | 14 | 37 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 35.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 56 | 31.11% |
▷ Public methods | 123 | 68.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 57 | 31.67% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 14 | 70.00% |
▷ Class constants | 6 | 30.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
52 PNG files occupy 0.15MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/yofla_3drt/themes/default-black/button-rotate.png | 2.88KB | 0.23KB | ▼ 91.86% |
includes/yofla_3drt/themes/default/button-fullscreen.png | 2.82KB | 0.17KB | ▼ 93.94% |
includes/yofla_3drt/themes/default/button-start.png | 3.52KB | 1.12KB | ▼ 68.15% |
includes/yofla_3drt/themes/pure-white/button-zoom-in.png | 3.14KB | 0.37KB | ▼ 88.27% |
includes/yofla_3drt/themes/pure-white/button-left.png | 3.08KB | 0.44KB | ▼ 85.81% |