Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼294.59ms] Passed 4 tests
A check of server-side resources used by Advanced WooCommerce Product Gallery Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.08 | 55.51 ▲3.84 |
Dashboard /wp-admin | 3.47 ▲0.06 | 34.71 ▲2.06 |
Posts /wp-admin/edit.php | 3.70 ▲0.05 | 40.85 ▼1.87 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.04 | 98.91 ▼1,172.71 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 39.47 ▼5.85 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wpgis_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced WooCommerce Product Gallery Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,806 ▲62 | 15.67 ▼0.11 | 6.55 ▲0.44 | 2.27 ▲0.34 |
Dashboard /wp-admin | 2,931 ▲70 | 6.86 ▲0.73 | 120.72 ▼18.96 | 169.11 ▲4.27 |
Posts /wp-admin/edit.php | 2,734 ▲49 | 3.30 ▲0.07 | 66.66 ▼37.57 | 159.43 ▲14.80 |
Add New Post /wp-admin/post-new.php | 1,666 ▼107 | 21.61 ▲0.55 | 489.97 ▲26.75 | 172.56 ▲2.14 |
Media Library /wp-admin/upload.php | 1,741 ▲46 | 5.83 ▲0.30 | 146.61 ▲2.42 | 290.48 ▲92.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- wpgis_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/advanced-woocommerce-product-gallery-slider/inc/settings.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-woocommerce-product-gallery-slider/inc/settings.php on line 3
- > PHP Warning
require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-woocommerce-product-gallery-slider/inc/settings.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in advanced-woocommerce-product-gallery-slider/assets to your readme.txt
advanced-woocommerce-product-gallery-slider/woo-product-gallery-image-slider.php 92% from 13 tests
The main file in "Advanced WooCommerce Product Gallery Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-woocommerce-product-gallery-slider.php" instead of "woo-product-gallery-image-slider.php")
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
Success! There were no dangerous files found in this plugin5,278 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,131 | 613 | 3,553 |
CSS | 3 | 195 | 39 | 1,340 |
PHP | 5 | 51 | 60 | 385 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin