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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.77ms] Passed 4 tests
Analyzing server-side resources used by Accordion FAQ plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.95 ▲0.60 |
Dashboard /wp-admin | 3.37 ▲0.06 | 52.05 ▼2.12 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 54.20 ▲1.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.58 ▼18.84 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.66 ▲1.72 |
Add New /wp-admin/post-new.php?post_type=quick_faq | 3.45 | 56.74 |
Quick Faq /wp-admin/edit-tags.php?taxonomy=quick_faq_tax&post_type=quick_faq | 3.29 | 37.44 |
All Items /wp-admin/edit.php?post_type=quick_faq | 3.34 | 38.17 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Accordion FAQ plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲170 | 13.31 ▼1.04 | 9.36 ▲7.27 | 39.80 ▼4.45 |
Dashboard /wp-admin | 2,226 ▲52 | 5.62 ▼0.06 | 86.02 ▼19.07 | 39.49 ▼6.26 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.02 ▼0.00 | 42.36 ▲4.44 | 35.52 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,552 ▲22 | 23.19 ▲0.09 | 703.85 ▲68.32 | 54.78 ▼8.72 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.21 ▲0.01 | 101.40 ▼2.00 | 46.54 ▲0.01 |
Add New /wp-admin/post-new.php?post_type=quick_faq | 2,923 | 7.76 | 184.67 | 77.65 |
Quick Faq /wp-admin/edit-tags.php?taxonomy=quick_faq_tax&post_type=quick_faq | 1,288 | 2.11 | 29.45 | 30.91 |
All Items /wp-admin/edit.php?post_type=quick_faq | 1,151 | 1.96 | 31.66 | 31.11 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordion-faq-plugin/accordion_faq.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
accordion-faq-plugin/accordion_faq.php 85% from 13 tests
The principal PHP file in "Accordion FAQ plugin" v. 2.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("accordion-faq-plugin.php" instead of "accordion_faq.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.3.1" instead of "6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin194 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 18 | 155 |
CSS | 1 | 5 | 1 | 28 |
JavaScript | 1 | 9 | 7 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 6 | |
▷ Named functions | 6 | 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
arrow.png | 3.18KB | 0.53KB | ▼ 83.44% |