84% product-rotate-360

Code Review | Product Rotate 360

WordPress plugin Product Rotate 360 scored84%from 54 tests.

About plugin

  • Plugin page: product-rotate-360
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Jul 23, 2021
  • Latest release: Jul 23, 2021
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: deb17276 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.14ms] Passed 4 tests

An overview of server-side resources used by Product Rotate 360
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.97 ▼0.33
Dashboard /wp-admin3.32 ▲0.0245.29 ▲0.95
Posts /wp-admin/edit.php3.38 ▲0.0247.51 ▼1.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.35 ▲3.53
Media Library /wp-admin/upload.php3.25 ▲0.0237.04 ▲1.06
ProductRotate 360 /wp-admin/options-general.php?page=pr360-setting-admin3.2131.69

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Product Rotate 360
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.52 ▲0.335.12 ▲3.5240.51 ▼3.23
Dashboard /wp-admin2,202 ▲255.63 ▼0.0790.48 ▼0.6642.31 ▲2.91
Posts /wp-admin/edit.php2,107 ▲71.99 ▲0.0440.67 ▼1.2233.76 ▼8.55
Add New Post /wp-admin/post-new.php1,529 ▲322.85 ▼0.37655.13 ▼24.5554.19 ▼0.81
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0393.40 ▼14.3940.92 ▼4.67
ProductRotate 360 /wp-admin/options-general.php?page=pr360-setting-admin8712.0323.7428.50

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 detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-rotate-360/product-rotate-360.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: product 360 degree view, product rotate 360, image 360 view, web rotate 360, product view 360...

product-rotate-360/product-rotate-360.php Passed 13 tests

The primary PHP file in "Product Rotate 360" version 1.0.0 is used by WordPress to initiate all plugin functionality
35 characters long description:
360 degree rotation of your product

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected234 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14461233
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin