Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.53ms] Passed 4 tests
An overview of server-side resources used by NS Free Price and Donation for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.21 ▼3.29 |
Dashboard /wp-admin | 3.40 ▲0.10 | 50.67 ▼4.11 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.64 ▼1.02 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.51 ▼9.70 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.70 ▲3.16 |
Donation /wp-admin/admin.php?page=ns-free-price-and-donation-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 3.30 | 30.29 |
/wp-admin/admin.php?page=plugineye206 | 3.29 | 36.93 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.27 | 31.91 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
ns_gp_enabled_plugin |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by NS Free Price and Donation for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲37 | 14.35 ▲0.20 | 1.88 ▼0.39 | 45.92 ▲2.41 |
Dashboard /wp-admin | 2,227 ▲50 | 5.69 ▲0.04 | 85.52 ▼3.30 | 78.47 ▲40.35 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.99 ▼0.03 | 38.66 ▼2.19 | 34.31 ▼9.15 |
Add New Post /wp-admin/post-new.php | 1,557 ▲22 | 23.00 ▲4.90 | 725.30 ▲59.58 | 56.67 ▼12.64 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.23 ▲0.03 | 96.88 ▼19.85 | 75.03 ▲27.26 |
Donation /wp-admin/admin.php?page=ns-free-price-and-donation-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 806 | 1.13 | 7.16 | 27.31 |
/wp-admin/admin.php?page=plugineye206 | 920 | 1.65 | 25.92 | 22.66 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 693 | 1.52 | 6.98 | 19.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- ns_gp_enabled_plugin
- recovery_mode_email_last_sent
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=ns-free-price-and-donation-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php
- > Error in wp-content/plugins/ns-free-price-and-donation-for-woocommerce/ns-admin-options/ns_settings_custom.php+5
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/ns-free-price-and-donation-for-woocommerce/ns-admin-options/ns_settings_custom.php:5
Stack trace:
#0 wp-content/plugins/ns-free-price-and-donation-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php(41): require_once()
#1 wp-admin/admin.php(293): include('/var/www/wordpr...')
#2 {main}
thrown- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=how-to-install-premium-version
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-free-price-and-donation-for-woocommerce/ns-free-price-and-donation-for-woocommerce-add-tab.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-free-price-and-donation-for-woocommerce/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Exemple on single product donation.), #2 (Total donatin in plugin settings.)
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
ns-free-price-and-donation-for-woocommerce/ns-free-price-and-donation-for-woocommerce.php Passed 13 tests
"NS Free Price and Donation for WooCommerce" version 2.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Insert free price to one or many product
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,120 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 100 | 193 | 704 |
CSS | 5 | 28 | 8 | 359 |
JavaScript | 2 | 16 | 0 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 26.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 73.68% |
Functions | 26 | |
▷ Named functions | 16 | 61.54% |
▷ Anonymous functions | 10 | 38.46% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 12.00KB | 5.92KB | ▼ 50.68% |
ns-admin-options/img/placeholder.png | 2.75KB | 2.92KB | 0.00% |
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/ns-theme-promo.png | 29.37KB | 8.96KB | ▼ 69.50% |