Benchmarks
Plugin footprint 83% 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.03MB] [CPU: ▼7.83ms] Passed 4 tests
A check of server-side resources used by Accordions and Tabs by Vander Web
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 22.26 ▼17.13 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.63 ▼1.87 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.74 ▲2.47 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.13 ▼11.51 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.80 ▼0.81 |
Accordion items /wp-admin/edit.php?post_type=vanderweb_accordions | 3.32 | 37.94 |
Add new /wp-admin/post-new.php?post_type=vanderweb_accordions | 3.39 | 49.60 |
Shortcodes /wp-admin/edit.php?post_type=vanderweb_accordions&page=vanderweb-accordions-shortcodes | 3.28 | 32.74 |
Sections /wp-admin/edit-tags.php?taxonomy=vanderweb_acc_section&post_type=vanderweb_accordions | 3.27 | 28.27 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Accordions and Tabs by Vander Web
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲215 | 13.95 ▼0.63 | 5.23 ▲3.09 | 44.11 ▲5.91 |
Dashboard /wp-admin | 2,245 ▲56 | 5.81 ▲0.88 | 103.78 ▼10.38 | 39.87 ▼3.47 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.00 ▼0.00 | 39.17 ▲3.25 | 34.18 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.27 ▲0.08 | 671.92 ▲34.49 | 51.34 ▼8.47 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.18 ▼0.00 | 101.57 ▲2.03 | 44.52 ▼1.19 |
Accordion items /wp-admin/edit.php?post_type=vanderweb_accordions | 1,100 | 1.97 | 36.45 | 29.95 |
Add new /wp-admin/post-new.php?post_type=vanderweb_accordions | 2,263 | 7.74 | 167.25 | 61.45 |
Shortcodes /wp-admin/edit.php?post_type=vanderweb_accordions&page=vanderweb-accordions-shortcodes | 951 | 2.04 | 22.33 | 25.41 |
Sections /wp-admin/edit-tags.php?taxonomy=vanderweb_acc_section&post_type=vanderweb_accordions | 1,298 | 2.14 | 26.40 | 24.61 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=vanderweb_accordions&page=vanderweb-accordions-shortcodes
- > Notice in wp-content/plugins/accordions-and-tabs-by-vander-web/admin/class-vanderweb-bs4-accordion-admin.php+208
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/accordions-and-tabs-by-vander-web/public/partials/vanderweb-bs4-accordion-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/accordions-and-tabs-by-vander-web/admin/partials/vanderweb-bs4-accordion-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (No screenshots available.)
accordions-and-tabs-by-vander-web/vanderweb-bs4-accordion.php 85% from 13 tests
The main PHP file in "Accordions and Tabs by Vander Web" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("accordions-and-tabs-by-vander-web.php" instead of "vanderweb-bs4-accordion.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,951 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 2 | 14 | 1,284 |
PHP | 13 | 161 | 622 | 550 |
PO File | 1 | 43 | 55 | 110 |
JavaScript | 3 | 4 | 60 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected