Benchmarks
Plugin footprint 83% 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.15MB] [CPU: ▼3.35ms] Passed 4 tests
An overview of server-side resources used by NS Remove Related Products for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 35.52 ▼1.85 |
Dashboard /wp-admin | 3.45 ▲0.15 | 47.82 ▲3.87 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.51 ▲3.83 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 84.68 ▼15.49 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 38.92 ▲0.10 |
Remove Related /wp-admin/admin.php?page=ns-remove-related-products-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 3.35 | 33.96 |
/wp-admin/admin.php?page=plugineye208 | 3.34 | 43.36 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.16 | 24.52 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
rrpw_reviews_installed_on |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by NS Remove Related Products for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.26 ▼1.12 | 1.58 ▲0.01 | 43.87 ▲2.06 |
Dashboard /wp-admin | 2,231 ▲43 | 4.92 ▲0.01 | 97.17 ▼13.52 | 75.94 ▲33.03 |
Posts /wp-admin/edit.php | 2,132 ▲46 | 2.06 ▲0.01 | 38.32 ▲2.81 | 34.65 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 23.01 ▼0.19 | 749.84 ▲63.57 | 39.25 ▼14.37 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.23 ▲0.07 | 101.58 ▼9.21 | 77.32 ▲29.04 |
Remove Related /wp-admin/admin.php?page=ns-remove-related-products-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 1,419 | 9.19 | 282.27 | 52.36 |
/wp-admin/admin.php?page=plugineye208 | 910 | 1.76 | 24.74 | 26.30 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3,191 | 14.95 | 463.83 | 193.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- rrpw_reviews_installed_on
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ns-remove-related-products-for-woocommerce/ns-admin-options/inc.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-remove-related-products-for-woocommerce/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=how-to-install-premium-version
- > Deprecation (warning) in unknown
https://www.nsthemes.com/wp-content/themes/flatsome/assets/js/flatsome.js?ver=295a0d1d1e8168b25a51f884bffa7b33 0 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
Optimizations
Plugin configuration 93% 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 to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
ns-remove-related-products-for-woocommerce/ns-remove-related-product-woocommerce.php 92% from 13 tests
The main file in "NS Remove Related Products for WooCommerce" v. 2.3.10 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 ("ns-remove-related-products-for-woocommerce.php" instead of "ns-remove-related-product-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,860 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 159 | 307 | 934 |
CSS | 5 | 129 | 11 | 821 |
PO File | 1 | 19 | 20 | 54 |
JavaScript | 3 | 6 | 0 | 51 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 15 | 44.12% |
▷ Public methods | 20 | 58.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 41.18% |
Functions | 20 | |
▷ Named functions | 10 | 50.00% |
▷ Anonymous functions | 10 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ns-admin-options/img/ns_banner_membership-500.png | 24.95KB | 26.27KB | 0.00% |
img/backend-sidebar-icon.png | 1.48KB | 0.54KB | ▼ 63.47% |
ns-admin-options/img/backend-sidebar-icon.png | 1.48KB | 0.54KB | ▼ 63.47% |
ns-admin-options/img/ns-theme-promo.png | 36.29KB | 11.62KB | ▼ 67.99% |