Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.62ms] Passed 4 tests
Analyzing server-side resources used by B Accordion - Add Horizontal / Vertical Accordion in WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.25 ▲1.98 |
Dashboard /wp-admin | 3.33 ▲0.03 | 42.81 ▼9.50 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 54.92 ▲6.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 105.92 ▲3.64 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.56 ▲8.02 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for B Accordion - Add Horizontal / Vertical Accordion in WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲186 | 14.24 ▼0.07 | 14.95 ▲13.21 | 43.71 ▼4.08 |
Dashboard /wp-admin | 2,206 ▲20 | 5.89 ▲0.99 | 109.12 ▼13.97 | 39.47 ▼12.59 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.02 | 46.33 ▲8.32 | 39.58 ▲3.04 |
Add New Post /wp-admin/post-new.php | 6,594 ▲5,066 | 22.39 ▲4.19 | 1,029.99 ▲413.24 | 40.95 ▼16.14 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.22 ▲0.00 | 113.50 ▲7.66 | 49.06 ▲1.29 |
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 detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant BAB_PLUGIN_VERSION - assumed 'BAB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/b-accordion/dist/editor.asset.php on line 3
- > PHP Warning
Use of undefined constant BAB_PLUGIN_VERSION - assumed 'BAB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/b-accordion/dist/script.asset.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
b-accordion/index.php 85% from 13 tests
"B Accordion - Add Horizontal / Vertical Accordion in WordPress" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("b-accordion.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin219 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 119 |
PO File | 1 | 21 | 40 | 55 |
PHP | 3 | 11 | 13 | 40 |
JavaScript | 3 | 0 | 2 | 3 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin