Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.15MB] [CPU: ▲11.35ms] Passed 4 tests
Analyzing server-side resources used by NP Quote Request WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.64 ▲1.18 | 54.66 ▲14.69 |
Dashboard /wp-admin | 4.44 ▲1.14 | 59.08 ▲13.84 |
Posts /wp-admin/edit.php | 4.56 ▲1.20 | 58.84 ▲13.07 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.14 | 101.99 ▲3.79 |
Media Library /wp-admin/upload.php | 4.37 ▲1.14 | 50.41 ▲18.12 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_npxyz2021_sessions |
New WordPress options |
---|
widget_theysaidso_widget |
gpls_woo_rfq_qr_page_check |
db_upgraded |
widget_recent-posts |
settings_gpls_woo_rfq_sessions_notable_fix21487m |
settings_gpls_woo_rfq_allow_coupon_entry |
settings_gpls_woo_rfq_old_shipping_coupon |
settings_gpls_woo_rfq_cookie |
can_compress_scripts |
settings_gpls_woo_rfq_show_shipping |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NP Quote Request WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲125 | 13.33 ▼1.02 | 9.24 ▲7.63 | 38.00 ▼2.01 |
Dashboard /wp-admin | 2,195 ▲17 | 5.59 ▼0.12 | 94.86 ▼17.16 | 43.99 ▲2.91 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.01 | 40.15 ▲1.49 | 39.07 ▲6.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.21 ▼0.01 | 618.27 ▼25.41 | 48.68 ▲0.08 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▼0.03 | 96.83 ▲1.20 | 42.85 ▲1.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_npxyz2021_sessions
- The uninstall procedure has failed, leaving 14 options in the database
- settings_gpls_woo_rfq_sessions_notable_fix21487m
- settings_gpls_woo_rfq_cookie
- settings_gpls_woo_rfq_show_shipping
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- rfq_cart_sc_section_show_link_to_rfq_page
- settings_gpls_woo_rfq_show_applied_coupons
- can_compress_scripts
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-rfq-for-woocommerce/wp-session-manager/wp-cookie-session.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-rfq-for-woocommerce/wp-session-manager/includes/wp-cli.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-rfq-for-woocommerce/wp-session-manager/includes/php-session.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/woo-rfq-for-woocommerce/includes/classes/admin/settings/gpls_woo_rfq_settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-rfq-for-woocommerce/wp-session-manager/php-cookie-session.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woo-rfq-for-woocommerce/includes/classes/checkout/gpls_woo_rfq_ncheckout.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-rfq-for-woocommerce/wp-session-manager/includes/class-php-session.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-rfq-for-woocommerce/wp-session-manager/includes/class-wp-session.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-rfq-for-woocommerce/woo-rfq-includes/woo-rfq-functions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-rfq-for-woocommerce/wp-session-manager/includes/wp-session.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #0 (getquote.png), #2 (thankyou.png)
- Screenshots: These screenshots lack descriptions #17, #18 in woo-rfq-for-woocommerce/assets to your readme.txt
woo-rfq-for-woocommerce/woo-rfq-for-woocommerce.php 85% from 13 tests
"NP Quote Request WooCommerce" version 1.9.117'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:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "6.0")
- Description: Please keep the plugin description shorter than 140 characters (currently 270 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin10,110 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 4,857 | 1,646 | 9,342 |
CSS | 5 | 172 | 41 | 491 |
JavaScript | 6 | 177 | 12 | 277 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 35.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 372.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 1 | 4.35% |
Methods | 225 | |
▷ Static methods | 14 | 6.22% |
▷ Public methods | 202 | 89.78% |
▷ Protected methods | 21 | 9.33% |
▷ Private methods | 2 | 0.89% |
Functions | 164 | |
▷ Named functions | 162 | 98.78% |
▷ Anonymous functions | 2 | 1.22% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gpls_assets/img/favorite24.png | 1.91KB | 1.62KB | ▼ 15.16% |
gpls_assets/img/favorite16.png | 0.70KB | 0.82KB | 0.00% |
gpls_assets/img/payfast.png | 12.54KB | 5.79KB | ▼ 53.86% |