Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.46ms] Passed 4 tests
Server-side resources used by ELEX Product Feed for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.43 ▼4.12 |
Dashboard /wp-admin | 3.36 ▲0.06 | 52.88 ▲0.40 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 68.84 ▲16.55 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 98.63 ▼3.75 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.46 ▼6.35 |
Server storage [IO: ▲10.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ELEX Product Feed for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲20 | 13.18 ▼1.66 | 5.13 ▲3.02 | 43.39 ▼5.87 |
Dashboard /wp-admin | 2,206 ▼3 | 5.81 ▲0.96 | 108.73 ▲1.66 | 40.47 ▼3.11 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.02 ▲0.03 | 41.57 ▼14.79 | 36.85 ▼7.58 |
Add New Post /wp-admin/post-new.php | 1,520 ▼13 | 17.75 ▼5.60 | 719.95 ▲82.01 | 55.59 ▲5.87 |
Media Library /wp-admin/upload.php | 1,397 ▲15 | 4.20 ▼0.06 | 99.28 ▼2.43 | 44.33 ▲2.35 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/elex-product-feed/review_and_troubleshoot_notify/resources/logo.php
- > /wp-content/plugins/elex-product-feed/includes/elex-add-custom-fields.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/elex-product-feed/includes/market.php:88
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-product-feed/review_and_troubleshoot_notify/resources/review.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-product-feed/review_and_troubleshoot_notify/resources/troubleshoot.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: product feed, facebook feed, instagram, facebook catalog, woocommerce instagram
elex-product-feed/elex-product-feed.php 92% from 13 tests
The main file in "ELEX Product Feed for WooCommerce" v. 3.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "2.6.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin76,659 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 489 | 58 | 55,703 |
CSS | 6 | 96 | 26 | 10,908 |
PHP | 26 | 680 | 69 | 8,234 |
PO File | 3 | 441 | 540 | 1,709 |
SVG | 11 | 0 | 0 | 105 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 217)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 104.91 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 910.00 |
Average method complexity | 13.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 217.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 2 | 2.63% |
▷ Public methods | 76 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 1.23MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/arrow-up.png | 0.47KB | 0.20KB | ▼ 58.64% |
assets/icons/jquery-ui-lib-icons/ui-icons_777620_256x240.png | 4.52KB | 4.18KB | ▼ 7.58% |
assets/icons/jquery-ui-lib-icons/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
assets/images/Abandoned Cart Recovery.png | 76.09KB | 17.48KB | ▼ 77.02% |
assets/images/arrow-down.png | 0.41KB | 0.23KB | ▼ 44.26% |