Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼138.19ms] Passed 4 tests
Server-side resources used by WooCommerce Product FAQs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 37.27 ▲13.78 |
Dashboard /wp-admin | 3.07 ▲0.01 | 48.64 ▲13.12 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 49.50 ▲3.94 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 92.89 ▼558.56 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.12 ▼11.26 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options |
---|
woocommerce_faqs_plugin_version |
Browser metrics Passed 4 tests
WooCommerce Product FAQs: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.86 ▲0.32 | 10.86 ▲2.33 | 51.97 ▲2.33 |
Dashboard /wp-admin | 2,967 ▲33 | 5.88 ▼0.19 | 159.68 ▲11.49 | 115.72 ▲5.16 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.81 ▼0.01 | 73.55 ▲5.15 | 97.25 ▲4.94 |
Add New Post /wp-admin/post-new.php | 1,683 ▲13 | 18.79 ▼0.41 | 398.90 ▲20.11 | 115.24 ▲7.61 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 4.99 ▼0.02 | 159.25 ▼5.78 | 119.08 ▲1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- woocommerce_faqs_plugin_version
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woocommerce-product-faqs/public/templates/faq-form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_post_terms() in wp-content/plugins/woocommerce-product-faqs/public/templates/loop-faqs.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: frequently asked questions, woocommerce faqs, faq, woocommerce frequently asked questions, woocommerce...
woocommerce-product-faqs/woocommerce-faqs.php 77% from 13 tests
The principal PHP file in "WooCommerce Product FAQs" v. 3.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Description: The description should be shorter than 140 characters (currently 153 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-product-faqs.php" instead of "woocommerce-faqs.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
Everything looks great! No dangerous files found in this plugin1,121 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 366 | 500 | 951 |
CSS | 2 | 2 | 1 | 94 |
JavaScript | 2 | 34 | 3 | 76 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 38 | 90.48% |
▷ Anonymous functions | 4 | 9.52% |
Constants | 8 | |
▷ Global constants | 8 | 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
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/full-32x32.png | 23.48KB | 0.73KB | ▼ 96.88% |
admin/assets/images/icon.png | 23.09KB | 0.48KB | ▼ 97.92% |