Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲5.03MB] [CPU: ▲23.50ms] 75% from 4 tests
Server-side resources used by WordPress FAQ Accordion Plugin - Display FAQ
Please take the time to fix the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.03MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.43 | 65.30 ▲24.22 |
Dashboard /wp-admin | 8.91 ▲5.60 | 76.70 ▲23.53 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 79.10 ▲35.72 |
Add New Post /wp-admin/post-new.php | 9.41 ▲3.52 | 109.11 ▲15.37 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 67.94 ▲30.89 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.91 | 58.92 |
Server storage [IO: ▲4.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 229 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
fs_active_plugins |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
fs_debug_mode |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress FAQ Accordion Plugin - Display FAQ
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲243 | 14.01 ▼0.41 | 5.03 ▲3.37 | 27.37 ▼21.73 |
Dashboard /wp-admin | 2,271 ▲83 | 5.26 ▲0.17 | 107.34 ▼7.94 | 45.46 ▲1.78 |
Posts /wp-admin/edit.php | 2,153 ▲67 | 2.46 ▲0.47 | 39.28 ▲4.29 | 41.13 ▲7.77 |
Add New Post /wp-admin/post-new.php | 1,554 ▲16 | 23.25 ▲0.21 | 654.54 ▼21.81 | 35.16 ▼20.81 |
Media Library /wp-admin/upload.php | 1,453 ▲65 | 4.64 ▲0.41 | 100.57 ▼2.92 | 43.96 ▼2.13 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,120 | 2.21 | 28.80 | 26.14 |
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
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-display-faq/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- fs_accounts
- db_upgraded
- can_compress_scripts
- fs_debug_mode
- widget_recent-comments
- theysaidso_admin_options
- fs_active_plugins
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: accordion, faqs, faq, accordions
wp-display-faq/wp-display-faq.php Passed 13 tests
The primary PHP file in "WordPress FAQ Accordion Plugin - Display FAQ" version 1.4.3 is used by WordPress to initiate all plugin functionality
82 characters long description:
Accordion FAQs Plugin for WordPress to display FAQs with Category in your website.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin35,569 lines of code in 159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,162 | 17,257 | 34,680 |
CSS | 17 | 77 | 33 | 393 |
JavaScript | 6 | 48 | 79 | 248 |
PO File | 1 | 114 | 121 | 248 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 82.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,297 | |
▷ Static methods | 197 | 15.19% |
▷ Public methods | 897 | 69.16% |
▷ Protected methods | 25 | 1.93% |
▷ Private methods | 375 | 28.91% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 152 | |
▷ Global constants | 105 | 69.08% |
▷ Class constants | 47 | 30.92% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |