Benchmarks
Plugin footprint Passed 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼311.74ms] Passed 4 tests
Server-side resources used by WPB Advanced FAQ
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 54.25 ▼3.57 |
Dashboard /wp-admin | 3.46 ▲0.06 | 34.88 ▲0.95 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 39.57 ▼5.01 |
Add New Post /wp-admin/post-new.php | 7.03 ▲0.06 | 101.04 ▼1,237.19 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 26.58 ▼1.17 |
All FAQ's /wp-admin/edit.php?post_type=wpb_af_faq | 3.38 | 28.95 |
Tag /wp-admin/edit-tags.php?taxonomy=wpb_af_faq_tags&post_type=wpb_af_faq | 3.34 | 27.53 |
Category /wp-admin/edit-tags.php?taxonomy=wpb_af_faq_category&post_type=wpb_af_faq | 3.35 | 25.99 |
Add New /wp-admin/post-new.php?post_type=wpb_af_faq | 7.02 | 89.81 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WPB Advanced FAQ
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,962 ▲208 | 16.11 ▲0.41 | 11.31 ▲5.51 | 2.64 ▼0.15 |
Dashboard /wp-admin | 2,934 ▲73 | 6.12 ▼0.09 | 118.12 ▼10.12 | 172.25 ▲2.82 |
Posts /wp-admin/edit.php | 2,738 ▲47 | 3.25 ▲0.01 | 64.06 ▲2.24 | 144.97 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,701 ▲38 | 21.70 ▲2.28 | 404.54 ▼39.33 | 202.18 ▲18.64 |
Media Library /wp-admin/upload.php | 1,742 ▲41 | 5.52 ▲0.04 | 184.75 ▲33.27 | 190.73 ▼1.28 |
All FAQ's /wp-admin/edit.php?post_type=wpb_af_faq | 1,454 | 3.17 | 67.95 | 164.73 |
Tag /wp-admin/edit-tags.php?taxonomy=wpb_af_faq_tags&post_type=wpb_af_faq | 1,638 | 2.65 | 79.97 | 103.60 |
Category /wp-admin/edit-tags.php?taxonomy=wpb_af_faq_category&post_type=wpb_af_faq | 1,681 | 2.76 | 54.85 | 121.61 |
Add New /wp-admin/post-new.php?post_type=wpb_af_faq | 9,663 | 19.62 | 606.14 | 191.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpb-advanced-faq/inc/wpb-af-cpt.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wpb-advanced-faq/inc/wpb-af-shortcode.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpb-advanced-faq/inc/wpb-af-functions.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (27 tag instead of maximum 10)
wpb-advanced-faq/main.php 85% from 13 tests
The main PHP file in "WPB Advanced FAQ" ver. 1.06 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wpb-advanced-faq.php" instead of "main.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 291 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,043 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 13 | 11 | 335 |
JavaScript | 3 | 42 | 112 | 283 |
PHP | 5 | 96 | 71 | 279 |
PO File | 1 | 44 | 44 | 104 |
SVG | 1 | 0 | 0 | 42 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 13 | |
▷ Named functions | 13 | 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
PNG images were not found in this plugin