Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.86MB] [CPU: ▼16.33ms] Passed 4 tests
Analyzing server-side resources used by Ultimate FAQ - WordPress FAQ and Accordion Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.05 ▲1.58 | 46.24 ▲4.28 |
Dashboard /wp-admin | 4.89 ▲1.54 | 52.05 ▼10.77 |
Posts /wp-admin/edit.php | 4.95 ▲1.59 | 60.06 ▲10.27 |
Add New Post /wp-admin/post-new.php | 4.61 ▼1.28 | 35.92 ▼69.09 |
Media Library /wp-admin/upload.php | 4.81 ▲1.57 | 50.83 ▲14.16 |
All FAQs /wp-admin/edit.php?post_type=ufaq | 4.87 | 50.66 |
Add New /wp-admin/post-new.php?post_type=ufaq | 4.61 | 37.04 |
Settings /wp-admin/edit.php?post_type=ufaq&page=ewd-ufaq-settings | 4.82 | 56.20 |
Dashboard /wp-admin/edit.php?post_type=ufaq&page=ewd-ufaq-dashboard | 4.79 | 63.52 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=ufaq-category&post_type=ufaq | 4.80 | 44.38 |
About Us /wp-admin/edit.php?post_type=ufaq&page=ewd-ufaq-about-us | 4.72 | 44.66 |
Ultimate FAQs - Welcome! /wp-admin/index.php?page=ewd-ufaq-getting-started | 4.72 | 41.62 |
FAQ Tags /wp-admin/edit-tags.php?taxonomy=ufaq-tag&post_type=ufaq | 4.80 | 43.93 |
Server storage [IO: ▲8.58MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 979 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-comments |
widget_ewd_ufaq_display_faq_post_list |
widget_ewd_ufaq_popular_reviews_widget |
widget_recent-posts |
widget_ewd_ufaq_display_random_faq |
theysaidso_admin_options |
can_compress_scripts |
widget_ewd_ufaq_display_recent_faqs |
ewd-ufaq-installation-time |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Ultimate FAQ - WordPress FAQ and Accordion Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲129 | 14.23 ▼0.11 | 1.77 ▲0.09 | 39.74 ▼0.12 |
Dashboard /wp-admin | 2,247 ▲66 | 5.51 ▼0.19 | 100.59 ▼11.43 | 46.03 ▼0.31 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.11 ▲0.17 | 40.19 ▼4.07 | 36.69 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6,439 ▲4,913 | 28.13 ▲5.02 | 992.32 ▲347.56 | 42.06 ▼16.29 |
Media Library /wp-admin/upload.php | 1,458 ▲55 | 4.29 ▲0.11 | 97.10 ▼6.97 | 41.67 ▼6.20 |
All FAQs /wp-admin/edit.php?post_type=ufaq | 1,326 | 2.27 | 36.52 | 44.96 |
Add New /wp-admin/post-new.php?post_type=ufaq | 1,699 | 16.88 | 899.06 | 44.69 |
Settings /wp-admin/edit.php?post_type=ufaq&page=ewd-ufaq-settings | 2,135 | 13.91 | 311.27 | 44.20 |
Dashboard /wp-admin/edit.php?post_type=ufaq&page=ewd-ufaq-dashboard | 1,265 | 1.92 | 29.92 | 65.16 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=ufaq-category&post_type=ufaq | 1,346 | 2.11 | 35.71 | 31.87 |
About Us /wp-admin/edit.php?post_type=ufaq&page=ewd-ufaq-about-us | 1,297 | 1.91 | 29.33 | 35.04 |
Ultimate FAQs - Welcome! /wp-admin/index.php?page=ewd-ufaq-getting-started | 1,253 | 2.20 | 27.23 | 32.17 |
FAQ Tags /wp-admin/edit-tags.php?taxonomy=ufaq-tag&post_type=ufaq | 1,318 | 2.07 | 36.22 | 31.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 13 options
- widget_ewd_ufaq_display_faq_categories
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_ewd_ufaq_display_recent_faqs
- ewd-ufaq-permission-level
- db_upgraded
- widget_ewd_ufaq_display_random_faq
- widget_recent-comments
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=ufaq
- > Notice in wp-content/plugins/ultimate-faqs/includes/Blocks.class.php+147
Undefined variable: faq_category_options
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
The following issues need your attention
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/ultimate-faqs/lib/FPDF/tutorial/tuto2.php
- > /wp-content/plugins/ultimate-faqs/lib/FPDF/tutorial/tuto1.php
- > /wp-content/plugins/ultimate-faqs/lib/FPDF/tutorial/tuto6.php
- > /wp-content/plugins/ultimate-faqs/ewd-ufaq-templates/faqs-category-footer.php
- > /wp-content/plugins/ultimate-faqs/lib/FPDF/tutorial/tuto5.php
- > /wp-content/plugins/ultimate-faqs/lib/FPDF/tutorial/tuto7.php
- > /wp-content/plugins/ultimate-faqs/lib/FPDF/tutorial/tuto3.php
- > /wp-content/plugins/ultimate-faqs/lib/FPDF/tutorial/makefont.php
- > /wp-content/plugins/ultimate-faqs/lib/FPDF/tutorial/tuto4.php
- 334× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Style\\Supervisor' not found in wp-content/plugins/ultimate-faqs/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Alignment.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\BestFit' not found in wp-content/plugins/ultimate-faqs/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php:11
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/ultimate-faqs/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Csv.php:14
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/ultimate-faqs/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/Dollar.php on line 11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-faqs/ewd-ufaq-templates/submit-faq-captcha.php:4
- > PHP Parse error
syntax error, unexpected ':', expecting ')' in wp-content/plugins/ultimate-faqs/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream3.php on line 16
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/ultimate-faqs/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trig/Secant.php on line 9
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/ultimate-faqs/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Information/ErrorValue.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' not found in wp-content/plugins/ultimate-faqs/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Workbook.php:12
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/ultimate-faqs/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Date.php on line 11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/index.php?page=ewd-ufaq-getting-started
- > Network (severe)
wp-content/plugins/ultimate-faqs/assets/css/admin.css?ver=2.2.10 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: gutenberg faq, woocommerce faq, faq block, faq, accordion...
ultimate-faqs/ultimate-faqs.php Passed 13 tests
The primary PHP file in "Ultimate FAQ - WordPress FAQ and Accordion Plugin" version 2.2.10 is used by WordPress to initiate all plugin functionality
131 characters long description:
FAQ and accordion plugin with easy to use Gutenberg blocks, shortcodes and widgets. Includes an advanced FAQ search and FAQ schema.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin106,330 lines of code in 841 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 665 | 20,246 | 42,884 | 91,728 |
CSS | 24 | 354 | 262 | 4,088 |
JavaScript | 70 | 833 | 376 | 3,521 |
HTML | 59 | 72 | 0 | 3,240 |
Markdown | 10 | 411 | 0 | 1,855 |
PO File | 2 | 573 | 620 | 1,484 |
JSON | 3 | 0 | 0 | 245 |
YAML | 5 | 19 | 12 | 84 |
SVG | 1 | 1 | 0 | 39 |
Bourne Again Shell | 1 | 6 | 3 | 24 |
XML | 1 | 0 | 0 | 22 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,020)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 333)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 24.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,020.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 333.00 |
Code structure | ||
---|---|---|
Namespaces | 74 | |
Interfaces | 14 | |
Traits | 1 | |
Classes | 578 | |
▷ Abstract classes | 30 | 5.19% |
▷ Concrete classes | 548 | 94.81% |
▷ Final classes | 2 | 0.36% |
Methods | 5,497 | |
▷ Static methods | 1,620 | 29.47% |
▷ Public methods | 4,076 | 74.15% |
▷ Protected methods | 260 | 4.73% |
▷ Private methods | 1,161 | 21.12% |
Functions | 91 | |
▷ Named functions | 34 | 37.36% |
▷ Anonymous functions | 57 | 62.64% |
Constants | 1,423 | |
▷ Global constants | 11 | 0.77% |
▷ Class constants | 1,412 | 99.23% |
▷ Public constants | 1,245 | 88.17% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
55 PNG files occupy 2.00MB with 1.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/US_Related_Sales_Icon.png | 23.19KB | 8.15KB | ▼ 64.86% |
assets/img/Icon_WP_Grey.png | 36.76KB | 12.11KB | ▼ 67.05% |
assets/img/premium-screenshots/styling1.png | 39.49KB | 14.45KB | ▼ 63.40% |
assets/img/insert_link.png | 3.57KB | 1.13KB | ▼ 68.35% |
assets/img/ewd-support-icon-youtube.png | 1.75KB | 0.66KB | ▼ 62.56% |