Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.12ms] Passed 4 tests
An overview of server-side resources used by NS Ajax Products Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.80 ▲3.15 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.83 ▼1.30 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.26 ▼5.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.03 ▼12.85 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.23 ▲5.66 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.20 | 31.89 |
Ajax Product /wp-admin/admin.php?page=ns-ajax-products-search/ns-admin-options/ns_admin_option_dashboard.php | 3.26 | 36.12 |
/wp-admin/admin.php?page=plugineye220 | 3.22 | 32.85 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_ns_search_product_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for NS Ajax Products Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲223 | 13.59 ▼0.77 | 11.13 ▲9.44 | 37.30 ▼0.78 |
Dashboard /wp-admin | 2,223 ▲43 | 5.64 ▼0.03 | 90.30 ▲2.10 | 84.99 ▲43.34 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.99 ▲0.04 | 39.94 ▼3.75 | 35.35 ▼5.82 |
Add New Post /wp-admin/post-new.php | 1,704 ▲178 | 22.43 ▼0.61 | 708.32 ▲98.07 | 71.15 ▲16.07 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.14 ▼0.16 | 104.44 ▼2.47 | 76.08 ▲17.69 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 689 | 1.12 | 7.07 | 20.18 |
Ajax Product /wp-admin/admin.php?page=ns-ajax-products-search/ns-admin-options/ns_admin_option_dashboard.php | 933 | 1.99 | 22.99 | 37.08 |
/wp-admin/admin.php?page=plugineye220 | 916 | 2.01 | 24.84 | 24.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_ns_search_product_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ns-ajax-products-search/ns_search_products.widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-ajax-products-search/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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Example widget), #2 (Example shortcode), #3 (Search results), #4 (Widget search), #5 (Widget search results)
ns-ajax-products-search/ns_search_products.plugin.php 92% from 13 tests
This is the main PHP file of "NS Ajax Products Search" version 1.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ns-ajax-products-search.php" instead of "ns_search_products.plugin.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
Good job! No executable or dangerous file extensions detected1,336 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 102 | 212 | 744 |
CSS | 4 | 61 | 10 | 479 |
JavaScript | 3 | 38 | 9 | 113 |
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.18 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 39.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 60.87% |
Functions | 20 | |
▷ Named functions | 10 | 50.00% |
▷ Anonymous functions | 10 | 50.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
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.35MB with 0.21MB 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% |
asset/backend-sidebar-icon.png | 0.67KB | 0.52KB | ▼ 21.44% |
screenshot-4.png | 96.49KB | 26.58KB | ▼ 72.46% |
screenshot-3.png | 38.44KB | 10.78KB | ▼ 71.95% |
screenshot-1.png | 19.55KB | 6.34KB | ▼ 67.54% |