Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.85MB] [CPU: ▲10.19ms] Passed 4 tests
This is a short check of server-side resources used by Master Accordion ( Former WP Awesome FAQ Plugin )
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.69 ▲5.23 | 63.02 ▲20.23 |
Dashboard /wp-admin | 8.71 ▲5.41 | 78.83 ▲28.44 |
Posts /wp-admin/edit.php | 8.71 ▲5.36 | 73.30 ▲23.74 |
Add New Post /wp-admin/post-new.php | 9.27 ▲3.39 | 76.74 ▼26.67 |
Media Library /wp-admin/upload.php | 8.71 ▲5.48 | 65.21 ▲23.45 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.71 | 62.95 |
Server storage [IO: ▲4.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 217 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
fs_active_plugins |
fs_debug_mode |
widget_recent-posts |
fs_accounts |
widget_theysaidso_widget |
jltmaf_settings |
can_compress_scripts |
jltmaf_content |
... |
Browser metrics Passed 4 tests
Master Accordion ( Former WP Awesome FAQ Plugin ): an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,129 ▲372 | 15.42 ▲1.18 | 7.14 ▲5.19 | 28.34 ▼14.59 |
Dashboard /wp-admin | 2,416 ▲230 | 6.70 ▲1.73 | 124.56 ▲9.67 | 42.53 ▲2.70 |
Posts /wp-admin/edit.php | 2,325 ▲233 | 3.64 ▲1.65 | 50.54 ▲10.33 | 31.80 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,567 ▲34 | 22.98 ▼0.54 | 659.19 ▼12.49 | 37.51 ▼24.62 |
Media Library /wp-admin/upload.php | 1,461 ▲79 | 4.40 ▲0.19 | 85.74 ▼21.02 | 47.58 ▼0.22 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,295 | 3.33 | 49.52 | 33.39 |
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
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wp-awesome-faq/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 13 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_debug_mode
- can_compress_scripts
- widget_recent-posts
- fs_accounts
- jltmaf_free_vs_pro
- jltmaf_content
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-awesome-faq/lib/shortcodes.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'JT_Colorful_FAQ_Settings_API_Class' not found in wp-content/plugins/wp-awesome-faq/admin/colorful-faq-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-awesome-faq/inc/faq-gutenberg.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-awesome-faq/inc/faq-shortcodes.php:174
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-awesome-faq/inc/faq-dependecies.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-awesome-faq/inc/faq-cpt.php:73
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-awesome-faq/inc/faq-dependecies.php on line 6
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-awesome-faq/inc/faq-dependecies.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-awesome-faq/lib/sorting.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-awesome-faq/inc/helper-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-awesome-faq/lib/define.php:9
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (FAQ Posts lists), #2 (Front End FAQ Output), #3 (FAQ's by Category), #4 (Category added Shortcode FAQ's by ID), #5 (Editor Button FAQ), #6 (Popup Editor FAQ Button), #7 (FAQ Settings. Options Added: Close All, Open All and 1st Item Open.)
wp-awesome-faq/wp-awesome-faq.php 85% from 13 tests
The main PHP script in "Master Accordion ( Former WP Awesome FAQ Plugin )" version 4.1.9 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected47,389 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 7,803 | 16,428 | 33,225 |
PO File | 10 | 5,800 | 7,025 | 12,736 |
CSS | 18 | 29 | 25 | 902 |
JavaScript | 10 | 175 | 193 | 507 |
SVG | 1 | 0 | 0 | 19 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 85.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 1 | 2.13% |
Methods | 1,197 | |
▷ Static methods | 177 | 14.79% |
▷ Public methods | 853 | 71.26% |
▷ Protected methods | 19 | 1.59% |
▷ Private methods | 325 | 27.15% |
Functions | 129 | |
▷ Named functions | 128 | 99.22% |
▷ Anonymous functions | 1 | 0.78% |
Constants | 133 | |
▷ Global constants | 106 | 79.70% |
▷ Class constants | 27 | 20.30% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
screenshot-1.png | 58.24KB | 21.69KB | ▼ 62.76% |
screenshot-4.png | 25.34KB | 8.14KB | ▼ 67.87% |
screenshot-6.png | 27.35KB | 7.53KB | ▼ 72.48% |
lib/shortcode-icon.png | 1.36KB | 0.52KB | ▼ 62.01% |