Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼12.06ms] Passed 4 tests
Analyzing server-side resources used by WB FAQ
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.11 ▼10.48 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.12 ▼28.37 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 43.66 ▼2.58 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.78 ▼6.82 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.67 ▲3.35 |
All FAQs /wp-admin/edit.php?post_type=wb-faq | 3.32 | 37.06 |
Categories /wp-admin/edit-tags.php?taxonomy=wb_category&post_type=wb-faq | 3.27 | 34.56 |
Add New FAQ /wp-admin/post-new.php?post_type=wb-faq | 3.42 | 46.20 |
Help & Upgrade /wp-admin/edit.php?post_type=wb-faq&page=wb_faq_menu_help | 3.25 | 29.44 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WB FAQ
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲73 | 14.25 ▼0.03 | 2.18 ▲0.38 | 48.41 ▲4.23 |
Dashboard /wp-admin | 2,232 ▲52 | 5.51 ▼0.15 | 85.92 ▼4.15 | 38.68 ▼1.93 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.09 ▲0.13 | 33.83 ▼3.13 | 34.79 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,560 ▲31 | 23.26 ▲0.30 | 614.94 ▼69.02 | 54.40 ▼9.82 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.20 ▼0.03 | 98.12 ▼0.36 | 47.54 ▲5.43 |
All FAQs /wp-admin/edit.php?post_type=wb-faq | 1,107 | 1.97 | 32.49 | 29.64 |
Categories /wp-admin/edit-tags.php?taxonomy=wb_category&post_type=wb-faq | 1,311 | 2.12 | 25.40 | 32.01 |
Add New FAQ /wp-admin/post-new.php?post_type=wb-faq | 2,321 | 7.71 | 166.81 | 64.62 |
Help & Upgrade /wp-admin/edit.php?post_type=wb-faq&page=wb_faq_menu_help | 863 | 2.00 | 22.17 | 27.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wb-faq/lib/wb-faq-help-upgrade.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wb-faq/wb-faq.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wb-faq/lib/wb-faq-cpt.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wb-faq/public/wb-faq-view.php:30
- > PHP Fatal error
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)
There were no browser issues found
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
7 plugin tags: advanced faq, accordion, faqs, faqs list, grouped faqs...
wb-faq/wb-faq.php Passed 13 tests
Analyzing the main PHP file in "WB FAQ" version 1.0
46 characters long description:
A quick and easy way to add FAQs to your site.
Code Analysis Passed 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 plugin254 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 39 | 29 | 149 |
CSS | 2 | 14 | 9 | 105 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin