Benchmarks
Plugin footprint Passed 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.11MB] [CPU: ▼292.29ms] Passed 4 tests
This is a short check of server-side resources used by Accordions and Tabs by Vander Web
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 54.62 ▲5.33 |
Dashboard /wp-admin | 3.56 ▲0.16 | 32.88 ▲0.77 |
Posts /wp-admin/edit.php | 3.79 ▲0.15 | 36.88 ▲0.63 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.07 | 95.50 ▼1,164.77 |
Media Library /wp-admin/upload.php | 3.45 ▲0.15 | 27.00 ▼5.78 |
Add new /wp-admin/post-new.php?post_type=vanderweb_accordions | 3.78 | 43.78 |
Sections /wp-admin/edit-tags.php?taxonomy=vanderweb_acc_section&post_type=vanderweb_accordions | 3.45 | 24.35 |
Shortcodes /wp-admin/edit.php?post_type=vanderweb_accordions&page=vanderweb-accordions-shortcodes | 3.42 | 24.45 |
Accordion items /wp-admin/edit.php?post_type=vanderweb_accordions | 3.55 | 24.34 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Accordions and Tabs by Vander Web: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,926 ▲178 | 16.19 ▲0.51 | 8.78 ▲2.99 | 2.33 ▼0.15 |
Dashboard /wp-admin | 2,942 ▲88 | 6.16 ▼0.10 | 119.29 ▼17.01 | 158.41 ▼3.36 |
Posts /wp-admin/edit.php | 2,742 ▲54 | 3.24 ▲0.01 | 60.49 ▼3.70 | 141.13 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,814 ▲54 | 22.26 ▼0.59 | 415.41 ▼0.03 | 162.38 ▲8.01 |
Media Library /wp-admin/upload.php | 1,751 ▲53 | 5.54 ▲0.01 | 137.71 ▼6.12 | 189.26 ▼1.02 |
Add new /wp-admin/post-new.php?post_type=vanderweb_accordions | 2,948 | 9.94 | 194.47 | 196.84 |
Sections /wp-admin/edit-tags.php?taxonomy=vanderweb_acc_section&post_type=vanderweb_accordions | 1,672 | 2.77 | 55.03 | 108.98 |
Shortcodes /wp-admin/edit.php?post_type=vanderweb_accordions&page=vanderweb-accordions-shortcodes | 1,233 | 2.44 | 54.99 | 126.92 |
Accordion items /wp-admin/edit.php?post_type=vanderweb_accordions | 1,427 | 3.16 | 61.30 | 111.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/accordions-and-tabs-by-vander-web/public/partials/vanderweb-bs4-accordion-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (No screenshots available.) image not found
accordions-and-tabs-by-vander-web/vanderweb-bs4-accordion.php 85% from 13 tests
The main file in "Accordions and Tabs by Vander Web" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same 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
Success! There were no dangerous files found in this plugin1,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
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected