Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.88MB] [CPU: ▲8.47ms] Passed 4 tests
Server-side resources used by XPlainer - WooCommerce Product FAQ [WooCommerce Accordion FAQ Plugin]
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 43.40 ▲7.74 |
Dashboard /wp-admin | 4.30 ▲1.00 | 52.00 ▲6.68 |
Posts /wp-admin/edit.php | 4.35 ▲1.00 | 57.36 ▲14.33 |
Add New Post /wp-admin/post-new.php | 7.03 ▲1.15 | 99.81 ▲9.46 |
Media Library /wp-admin/upload.php | 4.23 ▲1.00 | 45.90 ▲10.01 |
Add New /wp-admin/post-new.php?post_type=ffw | 7.03 | 91.21 |
Settings /wp-admin/edit.php?post_type=ffw&page=woocommerce-faq | 4.41 | 41.03 |
All FAQS /wp-admin/edit.php?post_type=ffw | 4.32 | 46.26 |
Upgrade /wp-admin/edit.php?post_type=ffw&page=ffw-upgrade-to-pro | 4.25 | 37.35 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=ffw-category&post_type=ffw | 4.22 | 41.26 |
FAQ Tags /wp-admin/edit-tags.php?taxonomy=ffw-tag&post_type=ffw | 4.22 | 42.06 |
Dashboard /wp-admin/edit.php?post_type=ffw&page=ffw-dashboard | 4.33 | 38.82 |
Server storage [IO: ▲3.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 160 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
ffw_post_generation |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by XPlainer - WooCommerce Product FAQ [WooCommerce Accordion FAQ Plugin]
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲223 | 13.42 ▼0.93 | 8.77 ▲6.94 | 37.23 ▼2.90 |
Dashboard /wp-admin | 2,280 ▲100 | 5.69 ▲0.06 | 97.20 ▼3.63 | 46.21 ▼0.40 |
Posts /wp-admin/edit.php | 2,191 ▲88 | 2.13 ▲0.16 | 40.07 ▼0.71 | 38.53 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,613 ▲87 | 25.21 ▲2.30 | 610.07 ▼2.95 | 91.12 ▲39.21 |
Media Library /wp-admin/upload.php | 1,491 ▲88 | 4.22 ▲0.09 | 97.22 ▼22.29 | 47.20 ▼1.71 |
Add New /wp-admin/post-new.php?post_type=ffw | 6,365 | 19.27 | 903.89 | 36.13 |
Settings /wp-admin/edit.php?post_type=ffw&page=woocommerce-faq | 4,077 | 7.89 | 175.32 | 203.23 |
All FAQS /wp-admin/edit.php?post_type=ffw | 1,311 | 2.04 | 33.83 | 38.78 |
Upgrade /wp-admin/edit.php?post_type=ffw&page=ffw-upgrade-to-pro | 862 | 1.12 | 7.97 | 24.70 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=ffw-category&post_type=ffw | 1,365 | 2.25 | 32.06 | 39.47 |
FAQ Tags /wp-admin/edit-tags.php?taxonomy=ffw-tag&post_type=ffw | 1,331 | 2.26 | 27.93 | 35.57 |
Dashboard /wp-admin/edit.php?post_type=ffw&page=ffw-dashboard | 2,067 | 12.32 | 258.03 | 88.47 |
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 were found after uninstall: 7 options
- widget_recent-posts
- ffw_post_generation
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ffw&page=ffw-upgrade-to-pro
- > 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/faq-for-woocommerce/views/ffw-dashboard.php
- > /wp-content/plugins/faq-for-woocommerce/views/ffw-basic-template.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/faq-for-woocommerce/views/ffw-trip-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/faq-for-woocommerce/views/ffw-pop-template.php:2
- > PHP Notice
Undefined variable: faqs in wp-content/plugins/faq-for-woocommerce/views/ffw-basic-template.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/faq-for-woocommerce/views/ffw-classic-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/faq-for-woocommerce/views/dashboard/header.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/faq-for-woocommerce/includes/template-parts/sidebar.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/faq-for-woocommerce/views/faq-woocommerce-modal-form.php:9
- > PHP Warning
Use of undefined constant FFW_PLUGIN_URL - assumed 'FFW_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/faq-for-woocommerce/views/faq-woocommerce-modal-form.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faq-for-woocommerce/includes/faq-woocommerce-public.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/faq-for-woocommerce/includes/ffw-helper.php:190
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=ffw&page=ffw-dashboard
- > Other (warning) in unknown
/wp-admin/edit.php?post_type=ffw&page=ffw-dashboard 222 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 67 tag instead of maximum 10
faq-for-woocommerce/faq-for-woocommerce.php 92% from 13 tests
"XPlainer - WooCommerce Product FAQ [WooCommerce Accordion FAQ Plugin]" version 1.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.6" instead of "4.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,522 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 11 | 2 | 6 | 6,055 |
PHP | 39 | 1,245 | 1,872 | 5,897 |
Sass | 10 | 336 | 1 | 2,509 |
CSS | 20 | 21 | 23 | 2,316 |
JavaScript | 13 | 151 | 111 | 542 |
Markdown | 1 | 66 | 0 | 181 |
JSON | 2 | 0 | 0 | 22 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 29.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 250 | |
▷ Static methods | 7 | 2.80% |
▷ Public methods | 210 | 84.00% |
▷ Protected methods | 7 | 2.80% |
▷ Private methods | 33 | 13.20% |
Functions | 56 | |
▷ Named functions | 54 | 96.43% |
▷ Anonymous functions | 2 | 3.57% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
39 PNG files occupy 1.69MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/icon300.png | 2.23KB | 1.24KB | ▼ 44.57% |
assets/admin/images/help.png | 0.62KB | 0.41KB | ▼ 33.65% |
assets/admin/images/Facebook.png | 0.41KB | 0.34KB | ▼ 17.45% |
assets/admin/images/card.png | 9.23KB | 3.73KB | ▼ 59.59% |
assets/admin/images/crown.png | 0.98KB | 0.98KB | 0.20% |