Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲4.85MB] [CPU: ▲30.34ms] Passed 4 tests
An overview of server-side resources used by Flexible FAQs - Accordion FAQ Plugin for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.46 ▲5.00 | 74.26 ▲33.16 |
Dashboard /wp-admin | 8.48 ▲5.18 | 76.29 ▲24.18 |
Posts /wp-admin/edit.php | 8.48 ▲5.12 | 88.91 ▲35.88 |
Add New Post /wp-admin/post-new.php | 9.99 ▲4.11 | 131.94 ▲28.34 |
Media Library /wp-admin/upload.php | 8.48 ▲5.25 | 76.33 ▲35.69 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.48 | 67.07 |
Server storage [IO: ▲6.72MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 264 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
flexible_faqs_options |
theysaidso_admin_options |
widget_recent-posts |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Flexible FAQs - Accordion FAQ Plugin for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲51 | 14.20 ▼0.14 | 1.53 ▼0.53 | 30.41 ▼15.31 |
Dashboard /wp-admin | 2,238 ▲61 | 5.53 ▼0.03 | 95.96 ▲12.31 | 45.47 ▲2.91 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 1.99 ▲0.01 | 41.10 ▼0.13 | 38.52 ▼2.30 |
Add New Post /wp-admin/post-new.php | 6,235 ▲4,709 | 20.15 ▼1.05 | 1,011.28 ▲316.25 | 56.50 ▲2.39 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.20 ▲0.02 | 99.31 ▼5.03 | 44.34 ▲2.28 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,083 | 1.69 | 24.84 | 28.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/flexible-faqs/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 11 options
- fs_active_plugins
- widget_recent-comments
- widget_theysaidso_widget
- fs_gdpr
- can_compress_scripts
- flexible_faqs_options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- fs_debug_mode
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WPGO_Plugins\\Flexible_Faqs\\__() in wp-content/plugins/flexible-faqs/classes/templates/class-faq-post-templates.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: accordion, woocommerce faq, faq
flexible-faqs/flexible-faqs.php Passed 13 tests
The main PHP script in "Flexible FAQs - Accordion FAQ Plugin for WordPress" version 0.5.11 is automatically included on every request by WordPress
135 characters long description:
The easiest way to manage FAQs on your site. Beautiful drag/drop interface. Designed to handle small or large number of FAQs with ease.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin64,433 lines of code in 186 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 7,783 | 17,727 | 34,332 |
JavaScript | 13 | 6,727 | 8,191 | 26,876 |
CSS | 20 | 307 | 87 | 2,428 |
JSON | 5 | 0 | 0 | 736 |
SVG | 14 | 0 | 1 | 61 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 62.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 2 | 2.78% |
▷ Concrete classes | 70 | 97.22% |
▷ Final classes | 0 | 0.00% |
Methods | 1,270 | |
▷ Static methods | 216 | 17.01% |
▷ Public methods | 930 | 73.23% |
▷ Protected methods | 15 | 1.18% |
▷ Private methods | 325 | 25.59% |
Functions | 100 | |
▷ Named functions | 94 | 94.00% |
▷ Anonymous functions | 6 | 6.00% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
28 PNG files occupy 0.36MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
api/assets/images/yt.png | 1.38KB | 1.10KB | ▼ 20.55% |
assets/images/new-features/bulk-edit-faqs.png | 11.99KB | 12.06KB | 0.00% |
api/assets/images/content-censor-thumb.png | 8.82KB | 3.89KB | ▼ 55.92% |
api/assets/images/svg-flags-thumb.png | 14.50KB | 5.00KB | ▼ 65.53% |
assets/images/new-features/duplicate-faqs.png | 20.35KB | 8.02KB | ▼ 60.59% |