Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.66ms] Passed 4 tests
Server-side resources used by NS Popup Cart for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.45 ▼6.48 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.20 ▲0.54 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.64 ▼5.59 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.91 ▼9.56 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.49 ▼5.01 |
/wp-admin/admin.php?page=plugineye246 | 3.22 | 29.75 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.19 | 31.42 |
NS Popup Cart /wp-admin/admin.php?page=ns-popup-cart-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 3.25 | 30.77 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for NS Popup Cart for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲213 | 13.53 ▼0.87 | 9.14 ▲7.53 | 39.57 ▼2.96 |
Dashboard /wp-admin | 2,224 ▲36 | 5.88 ▲1.02 | 98.90 ▼5.45 | 77.25 ▲34.44 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.04 ▼0.02 | 46.52 ▲6.33 | 42.55 ▲3.03 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.00 ▼0.09 | 741.31 ▲70.34 | 63.12 ▲4.00 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.21 ▲0.00 | 96.19 ▼18.40 | 80.92 ▲32.66 |
/wp-admin/admin.php?page=plugineye246 | 903 | 1.73 | 25.82 | 23.77 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 684 | 1.55 | 7.17 | 18.60 |
NS Popup Cart /wp-admin/admin.php?page=ns-popup-cart-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 1,449 | 9.25 | 267.27 | 58.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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
- 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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-popup-cart-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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Graphics example.), #2 (Settings Custom Popup Cart.)
ns-popup-cart-for-woocommerce/ns-popup-view-cart.php 92% from 13 tests
The main PHP file in "NS Popup Cart for WooCommerce" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ns-popup-cart-for-woocommerce.php" instead of "ns-popup-view-cart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,167 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 72 | 176 | 624 |
CSS | 4 | 47 | 16 | 492 |
JavaScript | 3 | 9 | 2 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 17 | |
▷ Named functions | 7 | 41.18% |
▷ Anonymous functions | 10 | 58.82% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.20MB with 0.11MB 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-1.png | 92.91KB | 33.94KB | ▼ 63.47% |
screenshot-2.png | 55.88KB | 15.60KB | ▼ 72.08% |
ns-admin-options/img/ns_banner_membership-500.png | 24.95KB | 26.27KB | 0.00% |
ns-admin-options/img/ns-theme-promo.png | 29.37KB | 8.96KB | ▼ 69.50% |