Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.35ms] Passed 4 tests
Analyzing server-side resources used by NS Custom Checkout Page for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.13 ▲1.19 |
Dashboard /wp-admin | 3.40 ▲0.06 | 48.91 ▼9.38 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.12 ▲2.04 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 80.23 ▼20.09 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.52 ▼1.11 |
/wp-admin/admin.php?page=plugineye240 | 3.29 | 31.20 |
Custom Checkout /wp-admin/admin.php?page=ns-custom-checkout-page-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 3.31 | 34.50 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.27 | 31.56 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for NS Custom Checkout Page for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.10 ▼0.25 | 1.74 ▲0.08 | 43.95 ▲3.67 |
Dashboard /wp-admin | 2,228 ▲48 | 5.56 ▼0.16 | 84.35 ▲0.59 | 67.12 ▲21.92 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.98 ▼0.01 | 34.51 ▲0.38 | 33.64 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 22.99 ▼0.48 | 724.51 ▲49.83 | 66.46 ▲7.52 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.16 ▲0.06 | 95.06 ▼17.30 | 64.57 ▲19.27 |
/wp-admin/admin.php?page=plugineye240 | 915 | 2.00 | 22.39 | 23.05 |
Custom Checkout /wp-admin/admin.php?page=ns-custom-checkout-page-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 1,019 | 2.01 | 22.49 | 29.53 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 691 | 1.12 | 6.77 | 19.68 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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)
Almost there, just 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× 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-custom-checkout-page-for-woocommerce/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ns-custom-checkout-page-for-woocommerce/ns-admin-options/inc.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Settings Custom Chekout Page.), #2 (Graphics example before.), #3 (Graphics example after.)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ns-custom-checkout-page-for-woocommerce/ns-custom-checkout-page.php 92% from 13 tests
This is the main PHP file of "NS Custom Checkout Page for WooCommerce" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ns-custom-checkout-page-for-woocommerce.php" instead of "ns-custom-checkout-page.php")
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
No dangerous file extensions were detected1,573 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 128 | 11 | 822 |
PHP | 11 | 78 | 181 | 629 |
PO File | 1 | 38 | 39 | 94 |
JavaScript | 1 | 4 | 0 | 28 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 16 | |
▷ Named functions | 6 | 37.50% |
▷ Anonymous functions | 10 | 62.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
6 PNG files occupy 0.13MB with 0.07MB 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% |
ns-admin-options/img/ns-theme-promo.png | 29.37KB | 8.96KB | ▼ 69.50% |
ns-admin-options/img/ns_banner_membership-500.png | 24.95KB | 26.27KB | 0.00% |
screenshot-2.png | 22.00KB | 5.32KB | ▼ 75.82% |
screenshot-1.png | 36.34KB | 8.36KB | ▼ 76.99% |