Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼14.51ms] Passed 4 tests
A check of server-side resources used by BH FAQ
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.79 ▲4.22 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.36 ▼12.55 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.52 ▼4.82 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.60 ▼43.61 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.04 ▲2.95 |
BH FAQ Settings /wp-admin/options-general.php?page=bh-faq-settings | 3.24 | 32.81 |
BH FAQ /wp-admin/edit.php?post_type=bh_faq_faq | 3.32 | 33.50 |
Add New /wp-admin/post-new.php?post_type=bh_faq_faq | 3.39 | 53.94 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for BH FAQ
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲195 | 14.75 ▲0.19 | 14.22 ▲12.55 | 43.11 ▲0.58 |
Dashboard /wp-admin | 2,242 ▲65 | 5.74 ▲0.06 | 86.30 ▼7.75 | 39.77 ▼0.47 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.26 ▲0.25 | 41.77 ▲2.92 | 35.81 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,566 ▲31 | 23.27 ▲5.41 | 692.77 ▲43.95 | 37.45 ▼24.89 |
Media Library /wp-admin/upload.php | 1,453 ▲50 | 4.38 ▲0.13 | 112.15 ▲6.71 | 46.42 ▼0.18 |
BH FAQ Settings /wp-admin/options-general.php?page=bh-faq-settings | 1,099 | 2.62 | 45.43 | 27.36 |
BH FAQ /wp-admin/edit.php?post_type=bh_faq_faq | 1,116 | 2.22 | 41.54 | 38.00 |
Add New /wp-admin/post-new.php?post_type=bh_faq_faq | 2,198 | 7.67 | 188.68 | 66.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bh-faq/register-bh-faq-post.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bh-faq/bh-faq.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (screenshot-3.jpg) image required
bh-faq/bh-faq.php Passed 13 tests
This is the main PHP file of "BH FAQ" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
FAQ plugin. This plugin made with jquery ui. Supported all crosebrowser.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin12,963 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 2,396 | 1,602 | 12,622 |
CSS | 1 | 25 | 23 | 206 |
PHP | 2 | 48 | 27 | 135 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_minus.png | 1.13KB | 0.28KB | ▼ 74.87% |
img/icon_plus.png | 1.16KB | 0.31KB | ▼ 73.59% |