83% spin360

Code Review | Spin 360 deg and 3D Model Viewer

WordPress plugin Spin 360 deg and 3D Model Viewer scored83%from 54 tests.

About plugin

  • Plugin page: spin360
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Sep 3, 2016
  • Latest release: Jul 14, 2022
  • Number of updates: 89
  • Update frequency: every 24.0 days
  • Top authors: maui2wp (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active /24,812 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.04MB] [CPU: ▼4.61ms] Passed 4 tests

This is a short check of server-side resources used by Spin 360 deg and 3D Model Viewer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.99 ▼2.23
Dashboard /wp-admin3.35 ▲0.0146.24 ▼11.71
Posts /wp-admin/edit.php3.40 ▲0.0546.51 ▲3.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.31 ▼4.39
Media Library /wp-admin/upload.php3.27 ▲0.0535.43 ▼0.12

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Spin 360 deg and 3D Model Viewer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.54 ▼0.849.23 ▲7.4639.55 ▼1.56
Dashboard /wp-admin2,195 ▲215.58 ▲0.0382.90 ▼4.9638.84 ▼1.20
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0235.79 ▼1.5434.85 ▼3.46
Add New Post /wp-admin/post-new.php1,526 ▼022.80 ▼0.70631.34 ▼60.2063.23 ▲5.96
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.0694.35 ▼10.0639.53 ▼6.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/spin360/spin360.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

spin360/spin360.php Passed 13 tests

"Spin 360 deg and 3D Model Viewer" version 1.2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
A new plugin to add 360 rotation support in wp

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,236 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2139378800
PHP32957313
CSS251275
SVG27548

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.72MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshot-3.png55.13KB32.16KB▼ 41.66%
dragtospin.png4.07KB2.74KB▼ 32.78%
Screenshot-2.png151.58KB46.93KB▼ 69.04%
Screenshot-4.png247.33KB78.60KB▼ 68.22%
Screenshot-1.png250.67KB92.65KB▼ 63.04%