Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.84ms] Passed 4 tests
Server-side resources used by LCB FAQ
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.98 ▼4.23 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.11 ▼13.83 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.35 ▼4.51 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.00 ▼16.79 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 36.92 ▲2.18 |
Faq /wp-admin/edit.php?post_type=faq | 3.32 | 39.14 |
Add new /wp-admin/post-new.php?post_type=faq | 3.39 | 47.43 |
Faq categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=faq | 3.27 | 35.46 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LCB FAQ
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.27 ▼1.39 | 1.92 ▼0.04 | 43.44 ▲7.00 |
Dashboard /wp-admin | 2,237 ▲46 | 5.85 ▲0.97 | 100.97 ▼3.69 | 39.77 ▼3.72 |
Posts /wp-admin/edit.php | 2,117 ▲31 | 2.05 ▲0.05 | 35.27 ▼5.34 | 33.34 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 23.07 ▲4.60 | 700.52 ▲63.52 | 62.20 ▲6.80 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.13 ▼0.09 | 107.13 ▲8.04 | 45.68 ▲3.62 |
Faq /wp-admin/edit.php?post_type=faq | 1,101 | 2.00 | 35.82 | 30.90 |
Add new /wp-admin/post-new.php?post_type=faq | 2,268 | 7.67 | 165.53 | 61.40 |
Faq categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=faq | 1,296 | 2.14 | 26.41 | 30.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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)
Good news, no errors were detected
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
Please take a closer look at the following
- 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/lcb-faq/lcb-faq.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lcb-faq/shortcode.php:44
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: questions, faq
lcb-faq/lcb-faq.php Passed 13 tests
The main file in "LCB FAQ" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
31 characters long description:
Displays questions with answers
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
Good job! No executable or dangerous file extensions detected130 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 28 | 101 |
PO File | 1 | 6 | 6 | 29 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 8 | |
▷ Named functions | 8 | 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.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.PNG | 41.46KB | 19.03KB | ▼ 54.10% |
screenshot-2.PNG | 47.56KB | 21.29KB | ▼ 55.23% |