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 gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▲4.70ms] Passed 4 tests
A check of server-side resources used by NS Custom Placeholder Image for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.12 ▼1.59 |
Dashboard /wp-admin | 3.41 ▲0.11 | 61.54 ▲10.62 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 57.69 ▲7.16 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 99.35 ▲10.77 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.01 ▲2.61 |
/wp-admin/admin.php?page=plugineye244 | 3.31 | 36.01 |
Placeholder /wp-admin/admin.php?page=ns-custom-placeholder-image-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 3.32 | 37.44 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.28 | 45.47 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
NS Custom Placeholder Image for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲257 | 14.71 ▼0.06 | 2.02 ▲0.04 | 39.60 ▼4.61 |
Dashboard /wp-admin | 2,358 ▲170 | 6.52 ▲1.64 | 132.87 ▲16.65 | 96.06 ▲54.81 |
Posts /wp-admin/edit.php | 2,279 ▲190 | 3.36 ▲1.33 | 54.16 ▲16.59 | 66.55 ▲34.78 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 18.19 ▼0.13 | 589.63 ▼74.45 | 41.32 ▼14.95 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.12 ▼0.13 | 83.58 ▼26.60 | 77.59 ▲34.37 |
/wp-admin/admin.php?page=plugineye244 | 1,077 | 3.05 | 39.60 | 55.73 |
Placeholder /wp-admin/admin.php?page=ns-custom-placeholder-image-for-woocommerce/ns-admin-options/ns_admin_option_dashboard.php | 1,568 | 10.21 | 300.38 | 96.13 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 694 | 1.72 | 10.99 | 18.03 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-custom-placeholder-image-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
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Settings Custom Placeholder Image.), #2 (View shop page after new image.), #3 (View single product after new image.)
ns-custom-placeholder-image-for-woocommerce/ns-custom-placeholder-image-page.php 92% from 13 tests
"NS Custom Placeholder Image for WooCommerce" version 1.3.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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-placeholder-image-for-woocommerce.php" instead of "ns-custom-placeholder-image-page.php")
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
Good job! No executable or dangerous file extensions detected1,071 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 82 | 191 | 597 |
CSS | 3 | 28 | 8 | 345 |
PO File | 1 | 22 | 22 | 72 |
JavaScript | 2 | 16 | 0 | 57 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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 | 19 | |
▷ Named functions | 9 | 47.37% |
▷ Anonymous functions | 10 | 52.63% |
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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ns-admin-options/img/ns_banner_membership-500.png | 24.95KB | 26.27KB | 0.00% |
screenshot-2.png | 45.48KB | 14.54KB | ▼ 68.03% |
screenshot-1.png | 24.40KB | 7.43KB | ▼ 69.54% |
ns-admin-options/img/ns-theme-promo.png | 29.37KB | 8.96KB | ▼ 69.50% |
ns-admin-options/img/placeholder.png | 2.75KB | 2.92KB | 0.00% |