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: ▲0.14MB] [CPU: ▲7.08ms] Passed 4 tests
This is a short check of server-side resources used by WordPress FAQ -- Frequently Asked Questions Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 47.72 ▲6.63 |
Dashboard /wp-admin | 3.44 ▲0.14 | 54.29 ▲8.93 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 59.92 ▲14.83 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 94.64 ▲1.71 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 44.50 ▲11.05 |
Add New /wp-admin/post-new.php?post_type=faq | 3.49 | 60.43 |
All FAQ /wp-admin/edit.php?post_type=faq | 3.39 | 42.64 |
Categories /wp-admin/edit-tags.php?taxonomy=faq_categories&post_type=faq | 3.36 | 42.22 |
Global Settings /wp-admin/edit.php?post_type=faq&page=faqglobalsettings | 3.33 | 38.91 |
Server storage [IO: ▲3.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress FAQ -- Frequently Asked Questions Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲226 | 14.59 ▼0.01 | 16.90 ▲15.08 | 36.04 ▼12.60 |
Dashboard /wp-admin | 2,241 ▲53 | 5.79 ▲0.87 | 95.75 ▼7.71 | 37.06 ▼9.71 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▲0.00 | 41.37 ▲4.74 | 35.59 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,562 ▲29 | 23.47 ▲0.27 | 664.47 ▲6.64 | 60.48 ▲4.47 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.17 ▼0.09 | 97.70 ▼23.53 | 44.03 ▼6.06 |
Add New /wp-admin/post-new.php?post_type=faq | 2,560 | 7.76 | 192.48 | 69.96 |
All FAQ /wp-admin/edit.php?post_type=faq | 1,105 | 1.97 | 30.86 | 29.70 |
Categories /wp-admin/edit-tags.php?taxonomy=faq_categories&post_type=faq | 1,294 | 2.14 | 27.41 | 27.01 |
Global Settings /wp-admin/edit.php?post_type=faq&page=faqglobalsettings | 1,050 | 2.02 | 22.18 | 26.29 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in frequently-asked-questions/assets to your readme.txt
frequently-asked-questions/faq.php 85% from 13 tests
The primary PHP file in "WordPress FAQ -- Frequently Asked Questions Plugin" version 3.7.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("frequently-asked-questions.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
There were no executable files found in this plugin29,445 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 5,143 | 3,936 | 20,668 |
CSS | 14 | 272 | 353 | 7,745 |
PHP | 4 | 112 | 84 | 511 |
HTML | 1 | 96 | 16 | 447 |
JSON | 1 | 0 | 0 | 74 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
49 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/faq-black-blue-theme/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
asset/faq-black-blue-theme/images/ui-icons_9ccdfc_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
asset/css-new/themes/greenblue/images/ui-bg_glass_75_79c9ec_1x400.png | 0.34KB | 0.16KB | ▼ 52.87% |
asset/faq-black-blue-theme/images/ui-bg_dots-small_20_333333_2x2.png | 0.20KB | 0.08KB | ▼ 57.77% |
asset/css-new/themes/greenblue/images/ui-bg_gloss-wave_75_2191c0_500x100.png | 5.84KB | 2.74KB | ▼ 53.09% |