Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.64MB] [CPU: ▼3.66ms] Passed 4 tests
A check of server-side resources used by FAQ Builder AYS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 38.69 ▼4.92 |
Dashboard /wp-admin | 3.94 ▲0.64 | 45.93 ▲1.54 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 50.23 ▲0.03 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.73 | 79.56 ▼11.30 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 36.61 ▲3.78 |
General Settings /wp-admin/admin.php?page=faq-builder-ays-faq-general-settings | 3.79 | 41.19 |
How to use /wp-admin/admin.php?page=faq-builder-ays-faq-how-to-use | 3.79 | 42.16 |
F.A.Q. Categories /wp-admin/admin.php?page=faq-builder-ays-faq-categories | 3.78 | 39.73 |
PRO Features /wp-admin/admin.php?page=faq-builder-ays-featured-plugins | 3.84 | 38.27 |
F.A.Q. Builder /wp-admin/admin.php?page=faq-builder-ays | 3.80 | 40.87 |
Server storage [IO: ▲2.26MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 87 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_ays_faqs |
wp_ays_faq_settings |
New WordPress options |
---|
ays_faq_db_version |
ays_faq_banner_time |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
ays_faq_sale_dismiss_for_two_month |
ays_faq_sale_notification |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by FAQ Builder AYS
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲91 | 14.69 ▲0.34 | 1.73 ▼0.11 | 30.00 ▼15.27 |
Dashboard /wp-admin | 2,256 ▲79 | 5.58 ▼0.03 | 93.22 ▼0.99 | 74.68 ▲32.89 |
Posts /wp-admin/edit.php | 2,161 ▲61 | 1.99 ▲0.05 | 39.62 ▼2.36 | 40.16 ▲3.35 |
Add New Post /wp-admin/post-new.php | 6,259 ▲4,733 | 19.50 ▼3.85 | 945.28 ▲292.90 | 36.97 ▼17.77 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 4.16 ▼0.04 | 96.40 ▼4.61 | 73.43 ▲30.67 |
General Settings /wp-admin/admin.php?page=faq-builder-ays-faq-general-settings | 1,440 | 4.00 | 91.35 | 143.57 |
How to use /wp-admin/admin.php?page=faq-builder-ays-faq-how-to-use | 1,432 | 3.98 | 83.52 | 117.52 |
F.A.Q. Categories /wp-admin/admin.php?page=faq-builder-ays-faq-categories | 1,347 | 3.94 | 50.94 | 79.71 |
PRO Features /wp-admin/admin.php?page=faq-builder-ays-featured-plugins | 1,720 | 3.92 | 49.62 | 102.34 |
F.A.Q. Builder /wp-admin/admin.php?page=faq-builder-ays | 1,720 | 3.96 | 48.39 | 90.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_ays_faq_settings
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- ays_faq_sale_dismiss_for_two_month
- can_compress_scripts
- widget_theysaidso_widget
- ays_faq_banner_time
- ays_faq_sale_notification
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/faq-builder-ays/public/partials/faq-builder-ays-public-display.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/faq-builder-ays/admin/partials/faq-builder-ays-admin-actions.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/faq-builder-ays/admin/partials/settings/faq-builder-general-settings-display.php:2
- > PHP Warning
Use of undefined constant AYS_FAQ_ADMIN_URL - assumed 'AYS_FAQ_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/faq-builder-ays/admin/partials/pro-features/faq-pro-features-display.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/faq-builder-ays/admin/partials/faq-builder-ays-admin-display.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/faq-builder-ays/admin/partials/how-to-use/faq-builder-how-to-use.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/faq-builder-ays/includes/lists/faq-builder-ays-faq-list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/faq-builder-ays/admin/partials/pro-features/faq-pro-features-display.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/faq-builder-ays/admin/partials/categories/faq-builder-ays-categories-display.php:7
- > PHP Warning
Use of undefined constant AYS_FAQ_ADMIN_URL - assumed 'AYS_FAQ_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/faq-builder-ays/admin/partials/faq-builder-ays-admin-display.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: toggle faqs, frequently asked questions, faqs, accordion faqs, faq
faq-builder-ays/faq-builder-ays.php Passed 13 tests
"FAQ Builder AYS" version 1.6.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
116 characters long description:
Installing FAQ shows how professional is your work and how attentive you are towards your customers, users, visitors
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected7,748 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 700 | 965 | 4,256 |
CSS | 8 | 500 | 1,467 | 2,068 |
JavaScript | 7 | 135 | 179 | 1,236 |
SVG | 10 | 0 | 1 | 122 |
PO File | 1 | 24 | 28 | 66 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 166)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 48.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 5.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 166.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 11 | 12.50% |
▷ Public methods | 83 | 94.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.68% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 0.94MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/faq-256x256.png | 16.25KB | 4.46KB | ▼ 72.53% |
admin/images/winter-backround-bundle.png | 195.70KB | 95.87KB | ▼ 51.01% |
admin/images/winter_bundle_logo_background_2.png | 357.75KB | 171.13KB | ▼ 52.16% |
admin/images/black_friday_banner_logo.png | 34.91KB | 35.05KB | 0.00% |
admin/images/ays_pro.png | 18.67KB | 4.33KB | ▼ 76.82% |