Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.79MB] [CPU: ▼45.62ms] Passed 4 tests
Analyzing server-side resources used by StackCommerce Deal Feed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 27.37 ▼15.23 |
Dashboard /wp-admin | 3.17 ▼0.18 | 28.51 ▼39.52 |
Posts /wp-admin/edit.php | 3.17 ▼0.19 | 30.33 ▼22.85 |
Add New Post /wp-admin/post-new.php | 3.17 ▼2.72 | 28.99 ▼104.89 |
Media Library /wp-admin/upload.php | 3.17 ▼0.06 | 23.90 ▼13.50 |
Shortcode Settings /wp-admin/admin.php?page=stackCommerce_shortcode_settings | 3.17 | 31.50 |
General Settings /wp-admin/admin.php?page=stackCommerce_general_settings | 3.17 | 25.31 |
Styling settings /wp-admin/admin.php?page=stackCommerce_style_settings | 3.17 | 28.29 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/stackcommerce-deal-feed/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_stackcommerce_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by StackCommerce Deal Feed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 13.71 ▼0.65 | 1.90 ▲0.09 | 44.30 ▼1.30 |
Dashboard /wp-admin | 2,264 ▲61 | 5.16 ▼0.74 | 112.15 ▼6.50 | 84.86 ▲34.73 |
Posts /wp-admin/edit.php | 2,157 ▲60 | 2.31 ▲0.32 | 41.53 ▲0.71 | 37.81 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.18 ▲5.55 | 604.65 ▼87.07 | 35.84 ▼8.30 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.38 ▲0.24 | 95.64 ▼19.73 | 65.40 ▲14.03 |
Shortcode Settings /wp-admin/admin.php?page=stackCommerce_shortcode_settings | 913 | 1.98 | 28.68 | 31.48 |
General Settings /wp-admin/admin.php?page=stackCommerce_general_settings | 895 | 1.95 | 26.85 | 29.27 |
Styling settings /wp-admin/admin.php?page=stackCommerce_style_settings | 1,511 | 2.83 | 59.85 | 29.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/stackcommerce-deal-feed/wp/includes/admin-settings.php+68
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_stackcommerce_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 17 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=stackCommerce_style_settings
- > Notice in wp-content/plugins/stackcommerce-deal-feed/wp/includes/partials/part-style-settings.php+4
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=stackCommerce_style_settings
- > Notice in wp-content/plugins/stackcommerce-deal-feed/wp/includes/partials/part-style-settings.php+8
Undefined index: button_text_color
- > GET request to /wp-admin/admin.php?page=stackCommerce_style_settings
- > Notice in wp-content/plugins/stackcommerce-deal-feed/wp/includes/partials/part-style-settings.php+12
Undefined index: box_background
- > GET request to /wp-admin/admin.php?page=stackCommerce_style_settings
- > Notice in wp-content/plugins/stackcommerce-deal-feed/wp/includes/partials/part-style-settings.php+16
Undefined index: ribon_background
- > GET request to /wp-admin/admin.php?page=stackCommerce_style_settings
- > Notice in wp-content/plugins/stackcommerce-deal-feed/wp/includes/partials/part-style-settings.php+124
Undefined index: ribon_text
- > GET request to /wp-admin/admin.php?page=stackCommerce_style_settings
- > Notice in wp-content/plugins/stackcommerce-deal-feed/wp/includes/partials/part-style-settings.php+143
Undefined index: custom_css
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
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stackcommerce-deal-feed/wp/includes/class-stackCommerce-widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/stackcommerce-deal-feed/stackCommerce.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/stackcommerce-deal-feed/wp/includes/class-stackCommerce-shortcode.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stackcommerce-deal-feed/wp/includes/display-functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stackcommerce-deal-feed/wp/includes/admin-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== stackcommerce-deal-feed ===
)
stackcommerce-deal-feed/stackCommerce.php 92% from 13 tests
The main file in "StackCommerce Deal Feed" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stackcommerce-deal-feed.php" instead of "stackCommerce.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
Good job! No executable or dangerous file extensions detected2,136 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 191 | 42 | 965 |
CSS | 3 | 0 | 4 | 584 |
LESS | 3 | 67 | 6 | 511 |
JavaScript | 1 | 20 | 5 | 76 |
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.18 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 9.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
wp/includes/img/SC_logoIcon.png | 2.95KB | 0.46KB | ▼ 84.32% |