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
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.64ms] Passed 4 tests
A check of server-side resources used by mklasen's FAQ
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.50 ▲0.36 |
Dashboard /wp-admin | 3.37 ▲0.07 | 56.08 ▼5.17 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 63.37 ▲5.14 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 91.54 ▼18.88 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.62 ▲7.11 |
Add Question /wp-admin/post-new.php?post_type=faq | 3.45 | 52.23 |
All Questions /wp-admin/edit.php?post_type=faq | 3.33 | 39.81 |
Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=faq | 3.29 | 34.48 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
mklasen's FAQ: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 13.34 ▼1.03 | 7.64 ▲6.03 | 40.50 ▼1.34 |
Dashboard /wp-admin | 2,230 ▲56 | 5.54 ▼0.09 | 94.40 ▲3.65 | 42.44 ▼4.07 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 1.99 ▼0.04 | 40.77 ▲3.05 | 35.38 ▲3.70 |
Add New Post /wp-admin/post-new.php | 6,266 ▲4,731 | 25.85 ▲7.52 | 928.70 ▲253.55 | 60.77 ▼6.60 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.23 ▲0.01 | 96.26 ▼11.21 | 40.48 ▼8.87 |
Add Question /wp-admin/post-new.php?post_type=faq | 2,592 | 7.85 | 190.68 | 71.49 |
All Questions /wp-admin/edit.php?post_type=faq | 1,082 | 1.91 | 29.57 | 31.62 |
Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=faq | 1,306 | 2.14 | 26.77 | 30.59 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/mklasens-faq/mklasens-faq.php
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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: frequently, questions, veelgestelde, easy, asked...
mklasens-faq/mklasens-faq.php Passed 13 tests
The entry point to "mklasen's FAQ" version 1.1 is a PHP file that has certain tags in its header comment area
131 characters long description:
Add easy Frequently Asked Questions to your WordPress website. Answers are shown (slide-down) after a visitor clicks on a question.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin253 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 58 | 71 | 184 |
CSS | 2 | 11 | 0 | 44 |
JavaScript | 2 | 0 | 2 | 25 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 9 | |
▷ Named functions | 9 | 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.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/faq-icon.png | 20.02KB | 1.09KB | ▼ 94.57% |