Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.16ms] Passed 4 tests
Analyzing server-side resources used by WPFAQBlock– FAQ & Accordion Plugin For Gutenberg
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 40.92 ▼1.64 |
Dashboard /wp-admin | 3.44 ▲0.13 | 50.44 ▲2.64 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 44.17 ▼7.84 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 86.46 ▼1.23 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.28 ▲2.07 |
FAQ Tags /wp-admin/edit-tags.php?taxonomy=wpfaqblock_tag&post_type=wpfaqblock | 3.35 | 34.75 |
All FAQs /wp-admin/edit.php?post_type=wpfaqblock | 3.40 | 37.03 |
Add New /wp-admin/post-new.php?post_type=wpfaqblock | 6.09 | 76.39 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=wpfaqblock_category&post_type=wpfaqblock | 3.35 | 35.62 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WPFAQBlock– FAQ & Accordion Plugin For Gutenberg
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲71 | 14.25 ▲0.04 | 1.90 ▼0.16 | 42.09 ▼4.96 |
Dashboard /wp-admin | 2,255 ▲77 | 5.58 ▼0.21 | 91.12 ▼24.64 | 43.54 ▲1.57 |
Posts /wp-admin/edit.php | 2,160 ▲63 | 2.00 ▼0.03 | 37.23 ▲1.42 | 33.27 ▼2.24 |
Add New Post /wp-admin/post-new.php | 6,403 ▲4,877 | 27.76 ▲4.54 | 937.25 ▲225.00 | 39.40 ▼20.46 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.24 ▲0.12 | 94.59 ▼15.65 | 39.90 ▼6.76 |
FAQ Tags /wp-admin/edit-tags.php?taxonomy=wpfaqblock_tag&post_type=wpfaqblock | 1,302 | 2.15 | 27.45 | 30.95 |
All FAQs /wp-admin/edit.php?post_type=wpfaqblock | 1,138 | 1.95 | 31.53 | 28.87 |
Add New /wp-admin/post-new.php?post_type=wpfaqblock | 1,528 | 16.77 | 784.72 | 31.01 |
FAQ Categories /wp-admin/edit-tags.php?taxonomy=wpfaqblock_category&post_type=wpfaqblock | 1,330 | 2.15 | 28.76 | 32.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpfaqblock/includes/templates/template-1.php on line 14
- > PHP Notice
Undefined variable: query in wp-content/plugins/wpfaqblock/includes/templates/template-1.php on line 36
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpfaqblock/includes/templates/template-1.php on line 18
- > PHP Notice
Undefined variable: args in wp-content/plugins/wpfaqblock/includes/templates/template-1.php on line 10
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/wpfaqblock/includes/templates/template-1.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpfaqblock/wpfaqblock.php:21
- > PHP Notice
Undefined variable: args in wp-content/plugins/wpfaqblock/includes/templates/template-1.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpfaqblock/includes/class-wpfaqblock-plugin-settings.php:34
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpfaqblock/includes/templates/template-1.php on line 10
- > PHP Notice
Undefined variable: args in wp-content/plugins/wpfaqblock/includes/templates/template-1.php on line 18
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: faq, block faqs, faq block, accordion, faqs...
wpfaqblock/wpfaqblock.php Passed 13 tests
"WPFAQBlock– FAQ & Accordion Plugin For Gutenberg" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Simple FAQ and accordion plugin with easy to use Gutenberg blocks, shortcodes and widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected757 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 18 | 183 | 356 |
CSS | 5 | 10 | 3 | 301 |
JavaScript | 4 | 3 | 15 | 46 |
JSON | 1 | 0 | 0 | 42 |
SVG | 3 | 0 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 16 | |
▷ Static methods | 8 | 50.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected