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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.99 ▼2.23 |
Dashboard /wp-admin | 3.35 ▲0.01 | 46.24 ▼11.71 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.51 ▲3.17 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 91.31 ▼4.39 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 13.54 ▼0.84 | 9.23 ▲7.46 | 39.55 ▼1.56 |
Dashboard /wp-admin | 2,195 ▲21 | 5.58 ▲0.03 | 82.90 ▼4.96 | 38.84 ▼1.20 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.02 | 35.79 ▼1.54 | 34.85 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.80 ▼0.70 | 631.34 ▼60.20 | 63.23 ▲5.96 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.06 | 94.35 ▼10.06 | 39.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 139 | 378 | 800 |
PHP | 3 | 29 | 57 | 313 |
CSS | 2 | 5 | 12 | 75 |
SVG | 2 | 7 | 5 | 48 |
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 code | 0.16 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 33.33% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot-3.png | 55.13KB | 32.16KB | ▼ 41.66% |
dragtospin.png | 4.07KB | 2.74KB | ▼ 32.78% |
Screenshot-2.png | 151.58KB | 46.93KB | ▼ 69.04% |
Screenshot-4.png | 247.33KB | 78.60KB | ▼ 68.22% |
Screenshot-1.png | 250.67KB | 92.65KB | ▼ 63.04% |