Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.72MB] [CPU: ▲2.40ms] 75% from 4 tests
Analyzing server-side resources used by GS Products Slider for WooCommerce
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 648.99ms on /wp-admin/edit.php?post_type=gs_wps_cpt&page=gs-wcps-plugins-premium)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 48.81 ▲7.96 |
Dashboard /wp-admin | 4.08 ▲0.77 | 62.36 ▲10.44 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 66.34 ▲14.94 |
Add New Post /wp-admin/post-new.php | 6.84 ▲0.95 | 84.39 ▼21.24 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 49.29 ▲12.43 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs_wps_cpt&page=gs-wcps-plugins-lite | 4.19 | 700.65 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs_wps_cpt&page=gs-wcps-plugins-premium | 4.08 | 648.99 |
Woo Product Slider /wp-admin/admin.php?page=wooproduct-settings | 3.91 | 50.44 |
Help & Usage /wp-admin/edit.php?post_type=gs_wps_cpt&page=gs-wcps-plugins-help | 3.91 | 47.41 |
Add New Product Shortcode /wp-admin/post-new.php?post_type=gs_wps_cpt | 4.03 | 50.09 |
Generate Shortcode /wp-admin/edit.php?post_type=gs_wps_cpt | 4.04 | 66.28 |
Server storage [IO: ▲0.83MB] [DB: ▲0.05MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
gs_wps_style |
gs_wps_general |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by GS Products Slider for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,411 ▲665 | 21.70 ▲7.05 | 168.79 ▲166.98 | 35.72 ▼4.50 |
Dashboard /wp-admin | 2,471 ▲283 | 7.01 ▲2.12 | 130.79 ▲29.21 | 110.82 ▲67.76 |
Posts /wp-admin/edit.php | 2,394 ▲305 | 3.60 ▲1.59 | 61.48 ▲21.56 | 86.36 ▲51.40 |
Add New Post /wp-admin/post-new.php | 6,391 ▲4,849 | 28.09 ▲9.65 | 926.11 ▲253.71 | 45.24 ▼28.24 |
Media Library /wp-admin/upload.php | 1,534 ▲149 | 4.99 ▲0.89 | 101.42 ▼15.64 | 76.03 ▲28.29 |
GS Plugins Lite /wp-admin/edit.php?post_type=gs_wps_cpt&page=gs-wcps-plugins-lite | 2,771 | 3.79 | 63.78 | 119.60 |
GS Plugins Pro /wp-admin/edit.php?post_type=gs_wps_cpt&page=gs-wcps-plugins-premium | 2,430 | 3.64 | 44.56 | 103.34 |
Woo Product Slider /wp-admin/admin.php?page=wooproduct-settings | 2,658 | 6.60 | 158.97 | 126.43 |
Help & Usage /wp-admin/edit.php?post_type=gs_wps_cpt&page=gs-wcps-plugins-help | 1,172 | 3.68 | 44.07 | 42.59 |
Add New Product Shortcode /wp-admin/post-new.php?post_type=gs_wps_cpt | 2,147 | 4.66 | 82.45 | 31.08 |
Generate Shortcode /wp-admin/edit.php?post_type=gs_wps_cpt | 1,310 | 3.47 | 49.70 | 26.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- gs_wps_general
- db_upgraded
- gs_wps_style
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gs_wps_cpt
- > Notice in wp-content/plugins/gs-woocommerce-products-slider/gswps-files/gs-wps-metabox.php+102
Trying to get property 'slug' of non-object
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gs_wps_cpt
- > Notice in wp-content/plugins/gs-woocommerce-products-slider/gswps-files/gs-wps-metabox.php+102
Trying to get property 'name' of non-object
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
Almost there! Just fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GS_wps_WeDevs_Settings_API' not found in wp-content/plugins/gs-woocommerce-products-slider/gswps-files/gswps-admin/gs_wps_options_config.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-woocommerce-products-slider/gswps-files/gs-wps-metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-woocommerce-products-slider/gswps-files/gs-common-pages/gs-wcps-common-pages.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-woocommerce-products-slider/gswps-files/gs-wps-media-button.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-woocommerce-products-slider/gswps-files/gs-wps-cpt.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-woocommerce-products-slider/gs-woocommerce-products-slider.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/gs-woocommerce-products-slider/gswps-files/gs-wps-shortcode.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-woocommerce-products-slider/gswps-files/gs-wps-script.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=wooproduct-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=wooproduct-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (37 tag instead of maximum 10)
gs-woocommerce-products-slider/gs-woocommerce-products-slider.php 77% from 13 tests
"GS Products Slider for WooCommerce" version 1.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- 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: Required version must match the one declared in readme.txt ("4.3" instead of "2.6")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 261 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,411 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 853 | 921 | 3,467 |
CSS | 10 | 170 | 52 | 1,886 |
Sass | 1 | 101 | 6 | 521 |
JavaScript | 9 | 131 | 95 | 515 |
JSON | 1 | 0 | 0 | 21 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of 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.41 |
Average class complexity | 36.71 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 1 | 0.72% |
▷ Public methods | 104 | 75.36% |
▷ Protected methods | 6 | 4.35% |
▷ Private methods | 28 | 20.29% |
Functions | 46 | |
▷ Named functions | 45 | 97.83% |
▷ Anonymous functions | 1 | 2.17% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gswps-files/gswps-admin/img/icon-128x128.png | 5.02KB | 2.84KB | ▼ 43.50% |