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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.45ms] Passed 4 tests
Analyzing server-side resources used by Flexible FAQ
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.08 | 44.85 ▲1.17 |
Dashboard /wp-admin | 3.64 ▲0.01 | 49.94 ▼17.82 |
Posts /wp-admin/edit.php | 3.75 ▲0.07 | 52.43 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.07 | 95.34 ▼4.51 |
Media Library /wp-admin/upload.php | 3.56 ▲0.07 | 41.95 ▲4.05 |
Add New /wp-admin/post-new.php?post_type=faq | 3.68 | 54.60 |
All FAQ /wp-admin/edit.php?post_type=faq | 3.61 | 38.48 |
Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=faq | 3.55 | 36.85 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Flexible FAQ
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 13.85 ▼0.44 | 9.32 ▲7.57 | 42.09 ▲2.19 |
Dashboard /wp-admin | 2,226 ▲58 | 5.68 ▲0.08 | 94.07 ▲1.46 | 42.92 ▲0.01 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.12 ▲0.14 | 41.06 ▼1.97 | 35.17 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,572 ▲41 | 23.28 ▲0.15 | 600.04 ▼5.25 | 48.46 ▼6.72 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.20 ▼0.00 | 102.52 ▼1.08 | 44.33 ▼0.81 |
Add New /wp-admin/post-new.php?post_type=faq | 2,292 | 7.71 | 179.58 | 67.33 |
All FAQ /wp-admin/edit.php?post_type=faq | 1,106 | 2.31 | 37.42 | 30.48 |
Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=faq | 1,305 | 2.14 | 27.67 | 30.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/flexible-faq/flexible-faq.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/flexible-faq/inc/shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexible-faq/inc/reorder.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: faq, q and a, q a
flexible-faq/flexible-faq.php Passed 13 tests
The main PHP script in "Flexible FAQ" version 0.2 is automatically included on every request by WordPress
58 characters long description:
A very flexible plugin to manage your FAQ using shortcodes
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
Success! There were no dangerous files found in this plugin353 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 24 | 16 | 205 |
CSS | 2 | 5 | 3 | 76 |
JavaScript | 2 | 12 | 6 | 72 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 6 | |
▷ Global constants | 6 | 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
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 |
images/faq-bg.png | 1.04KB | 0.15KB | ▼ 86.07% |
images/faq-bg-hover.png | 0.99KB | 0.11KB | ▼ 88.94% |