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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.60ms] Passed 4 tests
An overview of server-side resources used by WSFAQ
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 33.79 ▼6.57 |
Dashboard /wp-admin | 3.34 ▼0.00 | 40.44 ▼16.23 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.02 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 75.98 ▼14.65 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.29 ▲3.24 |
All Questions /wp-admin/edit.php?post_type=wsfaq_wsf_cat | 3.31 | 31.23 |
Add Category /wp-admin/edit-tags.php?taxonomy=faqcategory&post_type=wsfaq_wsf_cat | 3.26 | 32.14 |
FAQs Settings /wp-admin/edit.php?post_type=wsfaq_wsf_cat&page=wsfaq_wsf_cat | 3.21 | 29.88 |
Add Question /wp-admin/post-new.php?post_type=wsfaq_wsf_cat | 3.41 | 49.37 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WSFAQ
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲223 | 13.96 ▼0.42 | 8.02 ▲6.27 | 42.33 ▲4.71 |
Dashboard /wp-admin | 2,260 ▲72 | 5.09 ▲0.21 | 112.83 ▲1.94 | 42.07 ▲3.69 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.32 ▲0.35 | 39.27 ▼1.53 | 36.53 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,557 ▲38 | 23.29 ▲0.05 | 651.82 ▼17.16 | 33.31 ▼28.84 |
Media Library /wp-admin/upload.php | 1,442 ▲57 | 4.46 ▲0.23 | 94.61 ▲1.63 | 40.68 ▼6.27 |
All Questions /wp-admin/edit.php?post_type=wsfaq_wsf_cat | 1,137 | 2.24 | 39.06 | 31.61 |
Add Category /wp-admin/edit-tags.php?taxonomy=faqcategory&post_type=wsfaq_wsf_cat | 1,324 | 2.06 | 31.46 | 26.73 |
FAQs Settings /wp-admin/edit.php?post_type=wsfaq_wsf_cat&page=wsfaq_wsf_cat | 1,341 | 2.74 | 65.40 | 26.55 |
Add Question /wp-admin/post-new.php?post_type=wsfaq_wsf_cat | 2,499 | 7.86 | 182.08 | 66.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wsfaq_wsf_cat&page=wsfaq_wsf_cat
- > Notice in wp-content/plugins/wsfaq/wsfaq_all.php+228
Trying to access array offset on value of type bool
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please a description for screenshot #1 in wsfaq/assets to your readme.txt
wsfaq/wsfaq_all.php 85% from 13 tests
The main PHP file in "WSFAQ" ver. 1.0.0 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: It is recommended to name the main PHP file as the plugin slug ("wsfaq.php" instead of "wsfaq_all.php")
- Description: Keep the plugin description shorter than 140 characters (currently 405 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected552 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 128 | 45 | 543 |
CSS | 2 | 0 | 4 | 5 |
JavaScript | 2 | 0 | 5 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 16 | |
▷ Named functions | 16 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot_1_wsfaq_frontend.png | 8.20KB | 4.13KB | ▼ 49.62% |