Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.44ms] Passed 4 tests
A check of server-side resources used by WooSwipe WooCommerce Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 37.36 ▼6.23 |
Dashboard /wp-admin | 3.41 ▲0.06 | 45.49 ▼14.80 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.95 ▼1.11 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 90.01 ▼11.62 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.75 ▼0.52 |
WooSwipe /wp-admin/admin.php?page=wooswipe-options | 3.35 | 30.49 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
wooswipe_options |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WooSwipe WooCommerce Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲132 | 13.37 ▼0.77 | 8.32 ▲6.57 | 43.44 ▼0.54 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▼0.02 | 93.93 ▲1.47 | 39.44 ▼3.19 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.07 | 41.08 ▲2.93 | 35.11 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.51 ▲0.07 | 670.97 ▼19.59 | 45.91 ▼7.44 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.21 ▲0.06 | 99.42 ▼5.34 | 40.05 ▼1.75 |
WooSwipe /wp-admin/admin.php?page=wooswipe-options | 927 | 2.01 | 22.51 | 30.00 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- wooswipe_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wooswipe/public/partials/inc-photoswipe-footer.php
- > /wp-content/plugins/wooswipe/public/partials/wooswipe-main_image_swiper.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wooswipe/public/partials/wooswipe-main_image_swiper.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wooswipe/admin/partials/wooswipe-admin-display.php:14
- > PHP Notice
Undefined variable: finalArray in wp-content/plugins/wooswipe/public/partials/wooswipe-main_image_swiper.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wooswipe/public/partials/wooswipe-public-display.php:15
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Screenshot Default gallery layout), #2 (Screenshot Popup layout)
wooswipe/wooswipe.php 92% from 13 tests
"WooSwipe WooCommerce Gallery" version 3.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 200 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin8,182 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,845 | 521 | 5,943 |
CSS | 8 | 287 | 161 | 1,481 |
PHP | 14 | 199 | 596 | 689 |
SVG | 5 | 1 | 1 | 61 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/pswp/white-skin/skin.png | 15.02KB | 0.72KB | ▼ 95.22% |
public/pswp/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |