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.03MB] [CPU: ▼10.74ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Photos Product Tab
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.39 ▲0.01 |
Dashboard /wp-admin | 3.35 ▲0.00 | 47.61 ▼22.21 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.78 ▼5.77 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.58 ▼14.97 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.62 ▲2.91 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Photos Product Tab
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.63 ▼1.02 | 1.78 ▼0.05 | 43.14 ▼1.30 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲1.03 | 106.08 ▼4.30 | 38.46 ▼1.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 39.53 ▲1.29 | 34.78 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.73 ▼5.55 | 613.08 ▼58.11 | 49.26 ▼2.89 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.20 ▼0.02 | 100.10 ▼2.03 | 42.22 ▼2.67 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Product Page with Photos in a new tab.), #2 (Disable the photos tab.), #3 (Photos Tab Settings.)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woocommerce-photos-product-tab/woocommerce-photos-product-tab.php 85% from 13 tests
The main PHP script in "WooCommerce Photos Product Tab" version 2.1.2 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Requires at least: Required version does not match the one declared in readme.txt ("3.3" instead of "3.1")
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 detected352 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 73 | 192 |
PO File | 3 | 46 | 98 | 150 |
CSS | 1 | 2 | 8 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
3 PNG files occupy 0.45MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 99.63KB | 41.11KB | ▼ 58.74% |
screenshot-1.png | 361.60KB | 91.88KB | ▼ 74.59% |
screenshot-3.png | 4.43KB | 3.64KB | ▼ 17.90% |