Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.43ms] Passed 4 tests
A check of server-side resources used by NS WooCommerce Catalog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.21 ▼1.58 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.39 ▼7.19 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 55.54 ▼4.02 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 88.35 ▼20.92 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.69 ▲3.16 |
/wp-admin/admin.php?page=plugineye210 | 3.24 | 35.29 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.06 | 25.84 |
Catalog /wp-admin/admin.php?page=ns-woocommerce-catalog/ns-admin-options/ns_admin_option_dashboard.php | 3.30 | 46.88 |
Server storage [IO: ▲2.93MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
wcf_hide_cart_button_single_product |
widget_theysaidso_widget |
wcf_hide_cart_button_all_product |
widget_recent-posts |
widget_recent-comments |
wcf_enabled_plugin |
wcatalog_reviews_installed_on |
... |
Browser metrics Passed 4 tests
A check of browser resources used by NS WooCommerce Catalog
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.73 ▲0.45 | 1.73 ▼0.30 | 43.58 ▲1.93 |
Dashboard /wp-admin | 2,232 ▲58 | 4.85 ▼0.72 | 94.57 ▲3.35 | 88.84 ▲48.25 |
Posts /wp-admin/edit.php | 2,154 ▲51 | 2.29 ▲0.27 | 39.33 ▼1.95 | 35.39 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,729 ▲201 | 22.39 ▼0.75 | 626.40 ▲1.95 | 28.84 ▼23.04 |
Media Library /wp-admin/upload.php | 1,447 ▲53 | 4.46 ▲0.30 | 92.18 ▼9.19 | 78.18 ▲32.98 |
/wp-admin/admin.php?page=plugineye210 | 939 | 1.87 | 26.41 | 27.90 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3,015 | 13.15 | 461.27 | 197.65 |
Catalog /wp-admin/admin.php?page=ns-woocommerce-catalog/ns-admin-options/ns_admin_option_dashboard.php | 1,556 | 10.17 | 275.59 | 54.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 11 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- wcatalog_reviews_installed_on
- db_upgraded
- wcf_enabled_plugin
- wcf_hide_cart_checkout_page
- widget_theysaidso_widget
- wcf_hide_cart_button_single_product
- can_compress_scripts
- ...
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)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=how-to-install-premium-version
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ns-woocommerce-catalog/ns-admin-options/inc.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-woocommerce-catalog/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-woocommerce-catalog/ns-woocommerce-catalog-info.php:65
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors 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 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (View Caltalog mode on single product.), #2 (Settings NS WooCommerce Catalog.)
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
ns-woocommerce-catalog/ns-woocommerce-catalog.php Passed 13 tests
The main file in "NS WooCommerce Catalog" v. 2.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Switch their WooCommerce site in online catalog
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
Everything looks great! No dangerous files found in this plugin10,999 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 14 | 8,698 |
PHP | 13 | 202 | 317 | 1,138 |
CSS | 8 | 146 | 19 | 1,014 |
JavaScript | 4 | 26 | 0 | 113 |
PO File | 1 | 10 | 10 | 36 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 27 | |
▷ Named functions | 15 | 55.56% |
▷ Anonymous functions | 12 | 44.44% |
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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.24MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ns-admin-options/img/backend-sidebar-icon.png | 1.48KB | 0.54KB | ▼ 63.47% |
screenshot-2.png | 15.23KB | 5.79KB | ▼ 62.00% |
ns-admin-options/img/ns-theme-promo.png | 36.29KB | 11.62KB | ▼ 67.99% |
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% |