83% 360-product-view

Code Review | 360 Product Detait View

WordPress plugin 360 Product Detait View scored83%from 54 tests.

About plugin

  • Plugin page: 360-product-view
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 18, 2017
  • Latest release: Mar 18, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Minh Tuan Nguyen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,196 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.07 ▲4.64
Dashboard /wp-admin3.38 ▲0.0747.86 ▼2.98
Posts /wp-admin/edit.php3.49 ▲0.1450.04 ▼2.32
Add New Post /wp-admin/post-new.php5.98 ▲0.1085.85 ▼24.50
Media Library /wp-admin/upload.php3.30 ▲0.0736.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲9013.41 ▼0.847.97 ▲6.2239.80 ▼7.42
Dashboard /wp-admin2,199 ▲225.54 ▼0.0186.37 ▼4.8840.01 ▼0.30
Posts /wp-admin/edit.php2,101 ▲42.03 ▲0.0035.24 ▲0.1836.92 ▼1.08
Add New Post /wp-admin/post-new.php1,530 ▼523.18 ▲5.02632.11 ▼30.2547.89 ▼15.38
Media Library /wp-admin/upload.php1,401 ▲14.22 ▲0.07101.61 ▼6.2943.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)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP13177566369
CSS253292
JavaScript394924

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 code0.26
Average class complexity5.29
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-2.png90.62KB36.46KB▼ 59.76%
public/images/fs.png3.66KB0.74KB▼ 79.86%
public/images/sprites.png3.24KB2.33KB▼ 28.22%
screenshot-1.png43.95KB12.22KB▼ 72.19%
public/images/360_icon.png63.09KB0.85KB▼ 98.66%