Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.78ms] Passed 4 tests
This is a short check of server-side resources used by NS Product Rating for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.71 ▼7.62 |
Dashboard /wp-admin | 3.37 ▲0.03 | 51.17 ▼12.86 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 51.97 ▼2.45 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 90.45 ▼8.18 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.58 ▲6.33 |
/wp-admin/admin.php?page=plugineye165 | 3.26 | 39.58 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NS Product Rating for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.30 ▼0.05 | 1.93 ▼0.06 | 41.55 ▼6.17 |
Dashboard /wp-admin | 2,200 ▲29 | 5.66 ▲0.13 | 84.09 ▼11.23 | 49.54 ▲1.16 |
Posts /wp-admin/edit.php | 2,105 ▲8 | 2.02 ▼0.02 | 41.68 ▲0.72 | 36.07 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.30 ▲4.76 | 661.84 ▼0.41 | 57.65 ▼1.11 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.27 ▲0.06 | 106.05 ▲1.15 | 43.99 ▼2.19 |
/wp-admin/admin.php?page=plugineye165 | 887 | 2.03 | 29.83 | 31.50 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.form.shop.php on line 3
- > PHP Notice
Undefined variable: post in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.form.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.plugin.php:17
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.form.shop.php on line 3
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.form.shop.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.admin.php:3
- > PHP Notice
Undefined variable: post in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.form.shop.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.form.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.restable.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (View Rating on shop page.), #2 (View Rating on single product.), #3 (View Rating results.)
ns-product-rating-for-woocommerce/ns_product_rating_woocommerce.plugin.php 92% from 13 tests
This is the main PHP file of "NS Product Rating 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
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ns-product-rating-for-woocommerce.php" instead of "ns_product_rating_woocommerce.plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,862 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 155 | 281 | 940 |
CSS | 4 | 80 | 12 | 638 |
JavaScript | 5 | 54 | 14 | 189 |
PO File | 1 | 40 | 70 | 95 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 54.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 45.16% |
Functions | 25 | |
▷ Named functions | 15 | 60.00% |
▷ Anonymous functions | 10 | 40.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
9 PNG files occupy 0.14MB 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/ns-theme-promo.png | 29.37KB | 8.96KB | ▼ 69.50% |
asset/img/woo-watermark-bannerino.png | 9.87KB | 4.09KB | ▼ 58.56% |
ns-admin-options/img/placeholder.png | 2.75KB | 2.92KB | 0.00% |
asset/img/woo-watermark-bennerone.png | 38.25KB | 14.47KB | ▼ 62.16% |
asset/img/banneriiino.png | 9.07KB | 3.93KB | ▼ 56.70% |