Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.48MB] [CPU: ▼253.12ms] Passed 4 tests
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.27 ▲1.55 | 39.30 ▲19.22 |
Dashboard /wp-admin | 4.55 ▲1.50 | 53.16 ▲7.27 |
Posts /wp-admin/edit.php | 4.60 ▲1.50 | 51.71 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6.86 ▲1.43 | 98.94 ▼1,026.00 |
Media Library /wp-admin/upload.php | 4.50 ▲1.50 | 40.48 ▲0.19 |
Add New Question /wp-admin/post-new.php?post_type=question | 4.63 | 66.14 |
Dashboard /wp-admin/admin.php?page=faqs_dashboard | 4.49 | 42.00 |
Tags /wp-admin/edit-tags.php?taxonomy=Tags&post_type=question | 4.50 | 36.48 |
Main FAQ's /wp-admin/edit-tags.php?taxonomy=faqs&post_type=question | 4.52 | 42.48 |
Questions /wp-admin/edit.php?post_type=question | 4.55 | 41.12 |
Main Categories /wp-admin/edit-tags.php?taxonomy=faqscategory&post_type=faqs | 4.54 | 49.30 |
Server storage [IO: ▲5.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 127 new files
Database: no new tables, 4 new options
New WordPress options |
---|
empty_faq_message |
on_UNINSTALL_REMOVE_ALL_DATA |
faq_cat_page |
allow_rating_faq |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced FAQ QA Creator by Category
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,885 ▲279 | 16.98 ▲1.41 | 14.04 ▲4.23 | 47.51 ▼1.93 |
Dashboard /wp-admin | 3,020 ▲170 | 6.68 ▲0.87 | 146.43 ▲14.20 | 111.38 ▲13.12 |
Posts /wp-admin/edit.php | 2,796 ▲90 | 3.02 ▲0.33 | 80.64 ▲15.38 | 107.49 ▲16.33 |
Add New Post /wp-admin/post-new.php | 1,713 ▼140 | 18.93 ▼0.25 | 358.87 ▼26.44 | 105.20 ▼2.23 |
Media Library /wp-admin/upload.php | 1,788 ▲16 | 5.48 ▲0.46 | 127.56 ▼31.26 | 111.92 ▼1.56 |
Add New Question /wp-admin/post-new.php?post_type=question | 8,612 | 9.37 | 258.10 | 146.06 |
Dashboard /wp-admin/admin.php?page=faqs_dashboard | 1,833 | 3.97 | 121.92 | 136.25 |
Tags /wp-admin/edit-tags.php?taxonomy=Tags&post_type=question | 1,783 | 3.05 | 69.18 | 81.82 |
Main FAQ's /wp-admin/edit-tags.php?taxonomy=faqs&post_type=question | 6,031 | 4.55 | 134.06 | 143.24 |
Questions /wp-admin/edit.php?post_type=question | 1,503 | 2.95 | 68.82 | 89.07 |
Main Categories /wp-admin/edit-tags.php?taxonomy=faqscategory&post_type=faqs | 7,366 | 4.51 | 109.24 | 94.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 4 options in the database
- on_UNINSTALL_REMOVE_ALL_DATA
- empty_faq_message
- faq_cat_page
- allow_rating_faq
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /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_normal_links/template/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/category-footer.php
- > /wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_full/template/category-footer.php
- 64× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_2_col/template/search.php on line 3
- > 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 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_2_col/template/search.php on line 3
- > 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 Notice
Undefined variable: data in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_full/template/search.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-faq-creator-by-category/inc/pubicSittingQuestion.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-faq-creator-by-category/inc/TaxonomiesImage.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_collapse_full/data.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/advanced-faq-creator-by-category/templates/AFAQCBC_normal_links/template/header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-faq-creator-by-category/inc/modall.php:9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes 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 principal PHP file in "Advanced FAQ QA Creator by Category" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 252 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-faq-creator-by-category.php" instead of "faq.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
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
An short overview of 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.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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/AFAQCBC_collapse_full/screenshot.png | 1.80KB | 0.60KB | ▼ 66.52% |
images/twitter.png | 7.63KB | 3.66KB | ▼ 52.00% |
images/youtube.png | 8.60KB | 4.06KB | ▼ 52.74% |
images/envato.png | 34.24KB | 34.22KB | 0.05% |
images/wordpress.png | 27.01KB | 10.86KB | ▼ 59.80% |