Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.88MB] [CPU: ▼34.52ms] Passed 4 tests
An overview of server-side resources used by Spice Accordion FAQ
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 47.07 ▲7.58 |
Dashboard /wp-admin | 3.07 ▼0.24 | 26.31 ▼21.06 |
Posts /wp-admin/edit.php | 3.07 ▼0.29 | 29.03 ▼20.32 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.82 | 26.94 ▼86.28 |
Media Library /wp-admin/upload.php | 3.07 ▼0.16 | 23.85 ▼10.41 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=spice_faq_tax&post_type=spice_faq | 3.07 | 30.06 |
Documentation /wp-admin/edit.php?post_type=spice_faq&page=settings | 3.07 | 23.88 |
Add New /wp-admin/post-new.php?post_type=spice_faq | 3.07 | 25.60 |
All Items /wp-admin/edit.php?post_type=spice_faq | 3.07 | 27.32 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
spice_faq_tax_default_term_id |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
spice_faq_tax_children |
Browser metrics Passed 4 tests
An overview of browser requirements for Spice Accordion FAQ
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 14.43 ▲0.34 | 1.79 ▲0.14 | 42.90 ▲0.40 |
Dashboard /wp-admin | 2,241 ▲53 | 4.86 ▼0.02 | 98.21 ▼8.94 | 38.10 ▼2.06 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.01 ▼0.02 | 39.99 ▼1.65 | 35.22 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,571 ▲38 | 18.23 ▼4.75 | 609.29 ▼54.77 | 53.45 ▼11.21 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.19 ▼0.05 | 93.29 ▼3.42 | 42.89 ▼1.62 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=spice_faq_tax&post_type=spice_faq | 1,404 | 2.14 | 34.15 | 32.87 |
Documentation /wp-admin/edit.php?post_type=spice_faq&page=settings | 910 | 2.05 | 23.73 | 23.18 |
Add New /wp-admin/post-new.php?post_type=spice_faq | 2,284 | 7.60 | 165.45 | 60.85 |
All Items /wp-admin/edit.php?post_type=spice_faq | 1,094 | 2.01 | 29.70 | 26.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- spice_faq_tax_children
- spice_faq_tax_default_term_id
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=spice_faq
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/spice-faq/include/shortcodes-and-info.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/spice-faq/include/show-faq.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spice-faq/include/admin-faq.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spice-faq/spice-faq.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Requires at least: Version not formatted correctly
spice-faq/spice-faq.php 92% from 13 tests
The entry point to "Spice Accordion FAQ" version 1.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
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 detected271 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 84 | 45 | 205 |
CSS | 1 | 24 | 9 | 51 |
JavaScript | 1 | 6 | 6 | 15 |
PHP code Passed 2 tests
An overview of 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 | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 50.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 26.24KB | 11.18KB | ▼ 57.41% |
include/assets/images/down.png | 0.34KB | 0.48KB | 0.00% |
include/assets/images/up.png | 0.35KB | 0.49KB | 0.00% |
screenshot-1.png | 31.82KB | 8.08KB | ▼ 74.60% |