Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.06ms] Passed 4 tests
Server-side resources used by SR Product 360° View
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.51 ▼7.46 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.44 ▼3.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.18 ▼6.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.10 ▼14.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.65 ▲2.51 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for SR Product 360° View
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.36 ▼0.20 | 1.86 ▲0.12 | 43.09 ▼3.68 |
Dashboard /wp-admin | 2,195 ▲15 | 5.57 ▼0.05 | 83.59 ▼16.19 | 36.49 ▼6.12 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.01 ▲0.01 | 34.45 ▼2.57 | 34.14 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.02 ▼0.01 | 663.60 ▼20.19 | 46.90 ▼9.48 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.29 ▲0.07 | 93.44 ▼18.30 | 44.57 ▼1.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sr-product-360o-view/setting-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_option() in wp-content/plugins/sr-product-360o-view/set-icons.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: product image rotation, woocommerce image rotation, image rotation, 360 degree view, woocommerce product 360 degree view...
sr-product-360o-view/sr.php 77% from 13 tests
This is the main PHP file of "SR Product 360° View" version 3.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("sr-product-360o-view.php" instead of "sr.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "3.5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected5,828 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 817 | 684 | 4,056 |
CSS | 10 | 86 | 2 | 1,002 |
PHP | 4 | 42 | 22 | 770 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 64.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 22 | |
▷ Static methods | 20 | 90.91% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
37 PNG files occupy 0.20MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/colorpicker/images/select.png | 0.49KB | 0.33KB | ▼ 33.40% |
assets/img/360-3d-white-43-36.png | 2.78KB | 1.30KB | ▼ 53.16% |
assets/img/360-white.png | 6.10KB | 3.30KB | ▼ 45.85% |
assets/img/sr.png | 1.18KB | 0.26KB | ▼ 77.83% |
assets/img/360.png | 5.12KB | 3.30KB | ▼ 35.45% |