Benchmarks
Plugin footprint 83% from 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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼345.93ms] Passed 4 tests
Server-side resources used by FAQIZER
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 36.29 ▲14.79 |
Dashboard /wp-admin | 3.13 ▲0.08 | 47.44 ▲1.99 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 44.50 ▲3.35 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 91.30 ▼1,386.61 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 35.02 ▼2.45 |
All Faqs /wp-admin/edit.php?post_type=dlw_wp_faq | 3.12 | 31.39 |
Faq Topics /wp-admin/edit-tags.php?taxonomy=dlwfq_topics&post_type=dlw_wp_faq | 3.07 | 33.74 |
Add New Faq /wp-admin/post-new.php?post_type=dlw_wp_faq | 3.19 | 48.42 |
Server storage [IO: ▲0.08MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 5 new options
New WordPress options |
---|
dlwfq-archive-options-slug |
dlwfq-archive-title |
dlwfq-plugin-v |
dlwfq-total-posts-on-archive-page |
dlwfq-archive-accordion |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FAQIZER
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲160 | 15.95 ▲0.43 | 7.56 ▲0.12 | 47.24 ▼6.66 |
Dashboard /wp-admin | 3,019 ▲166 | 5.92 ▲0.09 | 134.09 ▲0.73 | 97.67 ▼5.05 |
Posts /wp-admin/edit.php | 2,766 ▲63 | 2.70 ▲0.02 | 66.01 ▼1.03 | 89.90 ▲5.28 |
Add New Post /wp-admin/post-new.php | 1,896 ▲245 | 19.18 ▲2.00 | 371.07 ▲18.80 | 105.94 ▼6.26 |
Media Library /wp-admin/upload.php | 1,832 ▲60 | 5.04 ▲0.05 | 153.21 ▲14.44 | 115.38 ▼15.86 |
All Faqs /wp-admin/edit.php?post_type=dlw_wp_faq | 1,454 | 2.63 | 66.15 | 65.11 |
Faq Topics /wp-admin/edit-tags.php?taxonomy=dlwfq_topics&post_type=dlw_wp_faq | 1,736 | 2.51 | 60.65 | 66.41 |
Add New Faq /wp-admin/post-new.php?post_type=dlw_wp_faq | 3,027 | 9.05 | 205.38 | 130.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/faqizer/faq.php+187
Use of undefined constant faqs - assumed 'faqs' (this will throw an Error in a future version of PHP)
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/faqizer/templates/archive-faqs.php
- > /wp-content/plugins/faqizer/templates/taxonomy-dlwfq_topics.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: faqs, frequently asked questions
faqizer/faq.php 85% from 13 tests
The main PHP file in "FAQIZER" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("faqizer.php" instead of "faq.php")
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
Success! There were no dangerous files found in this plugin1,314 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 249 | 318 | 913 |
JavaScript | 1 | 28 | 42 | 167 |
CSS | 2 | 23 | 2 | 149 |
PO File | 1 | 31 | 34 | 85 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
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 | 11.33 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 68.42% |
▷ Protected methods | 1 | 5.26% |
▷ Private methods | 5 | 26.32% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/frontend/img/down-arrow-solid.png | 0.23KB | 0.20KB | ▼ 10.34% |