Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/invelity-products-feeds/taxonomy/brand-taxonomy.php+5
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.38MB] [CPU: ▼47.35ms] Passed 4 tests
An overview of server-side resources used by Invelity Product Feeds
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.60 ▼0.86 | 8.19 ▼27.41 |
Dashboard /wp-admin | 2.62 ▼0.68 | 10.54 ▼41.81 |
Posts /wp-admin/edit.php | 2.62 ▼0.73 | 9.64 ▼37.57 |
Add New Post /wp-admin/post-new.php | 2.62 ▼3.26 | 11.11 ▼82.60 |
Media Library /wp-admin/upload.php | 2.62 ▼0.61 | 10.31 ▼23.78 |
Generate Feeds /wp-admin/admin.php?page=invelity-products-feeds | 2.62 | 10.12 |
Invelity plugins /wp-admin/admin.php?page=invelity-plugins | 2.62 | 8.29 |
Manage Feeds /wp-admin/admin.php?page=invelity-products-manage-feeds | 2.62 | 10.12 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
recovery_mode_email_last_sent |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Invelity Product Feeds
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.35 ▼0.00 | 1.71 ▼0.26 | 44.43 ▲1.25 |
Dashboard /wp-admin | 2,224 ▲49 | 5.63 ▲0.01 | 96.71 ▼3.33 | 44.74 ▲1.86 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.02 ▲0.02 | 32.88 ▼2.81 | 36.72 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 22.94 ▼0.71 | 616.30 ▼70.16 | 62.26 ▲11.54 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.23 ▲0.01 | 99.03 ▼1.49 | 42.97 ▼3.53 |
Generate Feeds /wp-admin/admin.php?page=invelity-products-feeds | 1,059 | 1.12 | 6.49 | 22.75 |
Invelity plugins /wp-admin/admin.php?page=invelity-plugins | 1,081 | 1.99 | 22.06 | 57.34 |
Manage Feeds /wp-admin/admin.php?page=invelity-products-manage-feeds | 982 | 2.93 | 43.29 | 77.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/invelity-products-feeds/taxonomy/brand-taxonomy.php+5
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 7 options
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=invelity-products-manage-feeds
- > Notice in wp-content/plugins/invelity-products-feeds/taxonomy/heureka-taxonomy.php+5
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=invelity-products-feeds
- > Error in wp-content/plugins/invelity-products-feeds/classes/admin/classPluginSettingsGenerateFeedPage.php+344
Uncaught Error: Class 'WC_Shipping_Zones' not found in wp-content/plugins/invelity-products-feeds/classes/admin/classPluginSettingsGenerateFeedPage.php:344
Stack trace:
#0 wp-content/plugins/invelity-products-feeds/classes/admin/classPluginSettingsGenerateFeedPage.php(66): PluginSettingsGenerateFeedPage->create_admin_page()
#1 wp-content/plugins/invelity-products-feeds/classes/admin/classPluginSettingsGenerateFeedPage.php(9): PluginSettingsGenerateFeedPage->createGenerateFeedPage()
#2 wp-content/plugins/invelity-products-feeds/classes/admin/classInvelityFeedPluginSettings.php(157): PluginSettingsGenerateFeedPage->__construct()
#3 wp-includes/class-wp-hook.php(310): InvelityFeedPluginSettings->wp_feed_create_generate_feed()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(
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
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/invelity-products-feeds/taxonomy/brand-taxonomy.php:3
- > PHP Notice
Undefined variable: invelity_feed_options in wp-content/plugins/invelity-products-feeds/taxonomy/google-taxonomy.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/invelity-products-feeds/taxonomy/google-taxonomy.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/invelity-products-feeds/taxonomy/heureka-taxonomy.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/invelity-products-feeds/taxonomy/google-taxonomy.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invelity-products-feeds/classes/process/classAjaxFeedsProcess.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invelity-products-feeds/classes/process/classAjaxFeedsProcess.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invelity-products-feeds/classes/process/classAjaxFeedsProcess.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=invelity-products-manage-feeds
- > Network (severe)
wp-content/plugins/invelity-products-feeds/assets/css/feed-admin.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: Add an image for screenshot #2 (Plugin usage)
invelity-products-feeds/invelity-products-feeds.php 92% from 13 tests
The principal PHP file in "Invelity Product Feeds" v. 1.2.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 157 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,562 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 866 | 135 | 2,938 |
CSS | 2 | 87 | 24 | 480 |
JavaScript | 1 | 72 | 209 | 131 |
SVG | 3 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 176)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 28.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 5.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 176.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 1 | 1.25% |
▷ Public methods | 57 | 71.25% |
▷ Protected methods | 1 | 1.25% |
▷ Private methods | 22 | 27.50% |
Functions | 21 | |
▷ Named functions | 17 | 80.95% |
▷ Anonymous functions | 4 | 19.05% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dropdown.png | 0.28KB | 0.21KB | ▼ 24.31% |
assets/screenshot-1.png | 185.67KB | 58.96KB | ▼ 68.24% |
assets/screenshot-2.png | 3.42KB | 2.35KB | ▼ 31.15% |