Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▲0.32ms] Passed 4 tests
Analyzing server-side resources used by NS Add Product Frontend for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.42 ▲2.36 |
Dashboard /wp-admin | 3.50 ▲0.19 | 46.81 ▼2.84 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 44.13 ▲0.42 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 99.48 ▲11.67 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.71 ▲1.33 |
/wp-admin/admin.php?page=plugineye205 | 3.39 | 30.53 |
Server storage [IO: ▲0.51MB] [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: 58 new files
Database: no new tables, 9 new options
New WordPress options |
---|
apf_reviews_installed_on |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
apf_plugin_template |
apf_plugin_page_id |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for NS Add Product Frontend for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲196 | 14.10 ▼0.28 | 6.28 ▲4.33 | 46.03 ▼5.92 |
Dashboard /wp-admin | 2,226 ▲38 | 5.85 ▼0.04 | 101.30 ▼14.22 | 77.43 ▲29.49 |
Posts /wp-admin/edit.php | 2,106 ▲20 | 1.98 ▼0.01 | 35.22 ▼1.70 | 33.30 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,684 ▲170 | 22.40 ▲4.88 | 725.03 ▲24.65 | 56.03 ▲2.82 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.22 ▲0.00 | 97.35 ▼9.33 | 67.71 ▲23.81 |
/wp-admin/admin.php?page=plugineye205 | 896 | 2.16 | 26.59 | 25.34 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- apf_reviews_installed_on
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ns-add-product-frontend/templates/apf-wc-standard-template/apf-wc-standard-template.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-add-product-frontend/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ns-add-product-frontend/inc/apf-include-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-add-product-frontend/async/apf-product-attributes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ns-add-product-frontend/inc/apf-activate-deactivate.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-add-product-frontend/async/apf-save-simple-product.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=plugineye205
- > Network (severe)
wp-content/plugins/ns-add-product-frontend/ns-admin-options/js/ns-option-js-page.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Settings add product.), #2 (View frontend example.)
ns-add-product-frontend/ns-apf-home.php 92% from 13 tests
This is the main PHP file of "NS Add Product Frontend for Woocommerce" version 2.0.5, 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-add-product-frontend.php" instead of "ns-apf-home.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
There were no executable files found in this plugin10,454 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 952 | 1,606 | 4,891 |
CSS | 8 | 128 | 104 | 2,772 |
PHP | 25 | 218 | 329 | 1,804 |
LESS | 9 | 68 | 61 | 740 |
PO File | 1 | 95 | 95 | 247 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 34 | |
▷ Static methods | 15 | 44.12% |
▷ Public methods | 20 | 58.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 41.18% |
Functions | 23 | |
▷ Named functions | 12 | 52.17% |
▷ Anonymous functions | 11 | 47.83% |
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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 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/icon-128x128.png | 5.16KB | 2.52KB | ▼ 51.14% |