Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.98ms] Passed 4 tests
Analyzing server-side resources used by NS Product Marketing Popup for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.18 ▼2.41 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.50 ▼17.61 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 44.25 ▼9.69 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.69 ▼8.64 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.99 ▼3.96 |
Marketing Popup /wp-admin/admin.php?page=ns-product-marketing-popup-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 3.29 | 36.30 |
/wp-admin/admin.php?page=plugineye243 | 3.22 | 32.21 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.20 | 30.62 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
ns_pmpfw_delay |
widget_theysaidso_widget |
theysaidso_admin_options |
ns_pmpfw_text |
db_upgraded |
widget_recent-posts |
ns_pmpfw_test_mode |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NS Product Marketing Popup for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,080 ▲309 | 13.75 ▼0.63 | 17.04 ▲15.10 | 43.22 ▼4.46 |
Dashboard /wp-admin | 2,226 ▲41 | 5.10 ▼0.77 | 101.58 ▼18.31 | 76.06 ▲31.90 |
Posts /wp-admin/edit.php | 2,121 ▲53 | 2.05 ▲0.00 | 34.39 ▲0.21 | 34.85 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.19 ▲4.88 | 788.82 ▲148.39 | 52.87 ▲8.21 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.28 ▲0.13 | 102.03 ▼2.68 | 73.54 ▲28.36 |
Marketing Popup /wp-admin/admin.php?page=ns-product-marketing-popup-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 1,713 | 6.91 | 137.98 | 118.92 |
/wp-admin/admin.php?page=plugineye243 | 908 | 1.76 | 24.54 | 24.37 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 686 | 1.55 | 6.89 | 19.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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- ns_pmpfw_test_mode
- widget_theysaidso_widget
- theysaidso_admin_options
- ns_pmpfw_delay
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- ns_pmpfw_text
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-product-marketing-popup-for-woocommerce/ns-product-marketing-popup-for-woocommerce-add-tab.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-product-marketing-popup-for-woocommerce/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (View NS Product Marketing Popup for WooCommerce in site.), #2 (Settings NS Product Marketing Popup for WooCommerce.)
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
ns-product-marketing-popup-for-woocommerce/ns-product-marketing-popup-for-woocommerce.php Passed 13 tests
The main PHP file in "NS Product Marketing Popup for WooCommerce" ver. 1.7.3 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Create a Layer the first access to site and add your Highlights product
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,316 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 93 | 197 | 714 |
CSS | 5 | 38 | 55 | 427 |
PO File | 1 | 39 | 39 | 100 |
JavaScript | 3 | 24 | 2 | 75 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 25 | |
▷ Named functions | 15 | 60.00% |
▷ Anonymous functions | 10 | 40.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.40MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/banneriiino.png | 8.91KB | 3.87KB | ▼ 56.55% |
screenshot-1.png | 275.81KB | 91.29KB | ▼ 66.90% |
ns-admin-options/img/NsCusPlaceHolder-bannerone.png | 22.08KB | 8.64KB | ▼ 60.89% |
img/bannerooone.png | 20.45KB | 8.94KB | ▼ 56.30% |
screenshot-2.png | 17.68KB | 8.11KB | ▼ 54.11% |