Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.48MB] [CPU: ▲6.47ms] Passed 4 tests
Analyzing server-side resources used by Advanced FAQ QA Creator by Category
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.93 ▲1.47 | 46.37 ▲12.68 |
Dashboard /wp-admin | 4.79 ▲1.49 | 55.41 ▲10.52 |
Posts /wp-admin/edit.php | 4.84 ▲1.49 | 51.46 ▲3.79 |
Add New Post /wp-admin/post-new.php | 7.34 ▲1.46 | 89.68 ▼0.42 |
Media Library /wp-admin/upload.php | 4.72 ▲1.49 | 44.04 ▲11.98 |
Main Categories /wp-admin/edit-tags.php?taxonomy=faqscategory&post_type=faqs | 4.74 | 48.76 |
Tags /wp-admin/edit-tags.php?taxonomy=Tags&post_type=question | 4.72 | 44.55 |
Main FAQ's /wp-admin/edit-tags.php?taxonomy=faqs&post_type=question | 4.73 | 42.86 |
Add New Question /wp-admin/post-new.php?post_type=question | 4.86 | 64.98 |
Dashboard /wp-admin/admin.php?page=faqs_dashboard | 4.64 | 45.84 |
Questions /wp-admin/edit.php?post_type=question | 4.77 | 44.87 |
Server storage [IO: ▲5.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 127 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
empty_faq_message |
faq_cat_page |
allow_rating_faq |
widget_theysaidso_widget |
db_upgraded |
on_UNINSTALL_REMOVE_ALL_DATA |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced FAQ QA Creator by Category
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲193 | 13.75 ▼0.63 | 6.95 ▲5.45 | 40.90 ▼0.50 |
Dashboard /wp-admin | 2,265 ▲88 | 5.07 ▼0.55 | 103.59 ▲17.08 | 42.77 ▲2.34 |
Posts /wp-admin/edit.php | 2,172 ▲72 | 2.14 ▲0.12 | 37.31 ▲1.11 | 30.62 ▼20.42 |
Add New Post /wp-admin/post-new.php | 1,587 ▲50 | 22.29 ▲4.23 | 670.76 ▲27.98 | 38.32 ▼35.48 |
Media Library /wp-admin/upload.php | 1,473 ▲70 | 4.51 ▲0.32 | 96.48 ▲2.80 | 42.32 ▼1.33 |
Main Categories /wp-admin/edit-tags.php?taxonomy=faqscategory&post_type=faqs | 6,697 | 3.87 | 66.63 | 42.90 |
Tags /wp-admin/edit-tags.php?taxonomy=Tags&post_type=question | 1,337 | 2.25 | 31.23 | 30.68 |
Main FAQ's /wp-admin/edit-tags.php?taxonomy=faqs&post_type=question | 4,499 | 3.84 | 92.43 | 91.65 |
Add New Question /wp-admin/post-new.php?post_type=question | 7,700 | 7.89 | 213.64 | 69.95 |
Dashboard /wp-admin/admin.php?page=faqs_dashboard | 1,371 | 3.37 | 72.34 | 91.07 |
Questions /wp-admin/edit.php?post_type=question | 1,179 | 2.40 | 33.39 | 29.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- on_UNINSTALL_REMOVE_ALL_DATA
- empty_faq_message
- faq_cat_page
- widget_theysaidso_widget
- allow_rating_faq
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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 items
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_2_col/template/category-footer.php
- > /wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_full/template/footer.php
- > /wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_2_col/template/footer.php
- > /wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_normal_links/template/category-footer.php
- > /wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_full/template/category-footer.php
- > /wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_normal_links/template/footer.php
- 64× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_full/template/question.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_normal_links/template/search.php on line 3
- > PHP Notice
Undefined variable: data in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_normal_links/template/search.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_full/template/search.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_full/template/search.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-faq-creator-by-category/inc/autocomplete-search.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advanced-faq-creator-by-category/inc/shortCode.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-faq-creator-by-category/inc/like-dislike.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-faq-creator-by-category/inc/search-options.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-faq-creator-by-category/inc/question-options.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #3 in advanced-faq-creator-by-category/assets to your readme.txt
advanced-faq-creator-by-category/faq.php 77% from 13 tests
The primary PHP file in "Advanced FAQ QA Creator by Category" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-faq-creator-by-category.php" instead of "faq.php")
- Description: Keep the plugin description shorter than 140 characters (currently 252 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Everything looks great! No dangerous files found in this plugin26,403 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 12 | 9,702 |
PHP | 43 | 798 | 345 | 6,528 |
JavaScript | 28 | 1,232 | 1,336 | 5,527 |
CSS | 10 | 802 | 47 | 4,646 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.96 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 150 | |
▷ Static methods | 16 | 10.67% |
▷ Public methods | 145 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.33% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wordpress.png | 27.01KB | 10.86KB | ▼ 59.80% |
images/facebook.png | 6.20KB | 3.37KB | ▼ 45.65% |
templates/AFAQCBC_collapse_2_col/screenshot.png | 1.88KB | 0.68KB | ▼ 63.69% |
templates/AFAQCBC_collapse_full/screenshot.png | 1.80KB | 0.60KB | ▼ 66.52% |
images/youtube.png | 8.60KB | 4.06KB | ▼ 52.74% |