Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.12ms] Passed 4 tests
A check of server-side resources used by Advanced Tabs Gutenberg Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 36.24 ▼7.22 |
Dashboard /wp-admin | 3.45 ▲0.10 | 44.75 ▼14.66 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 49.54 ▲11.54 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 96.00 ▼1.45 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.96 ▲2.85 |
Tabs Block /wp-admin/options-general.php?page=atbs-block | 3.34 | 30.80 |
Server storage [IO: ▲0.82MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Tabs Gutenberg Block
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲55 | 14.60 ▲0.25 | 1.56 ▼0.17 | 37.59 ▼6.31 |
Dashboard /wp-admin | 2,202 ▲24 | 5.62 ▲0.00 | 90.22 ▼24.55 | 42.90 ▼2.66 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.06 | 39.27 ▼1.97 | 36.21 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,715 ▲189 | 23.90 ▲0.65 | 647.22 ▲19.20 | 35.84 ▼16.19 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.02 | 99.05 ▼3.55 | 44.24 ▼1.88 |
Tabs Block /wp-admin/options-general.php?page=atbs-block | 1,507 | 10.05 | 290.12 | 57.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: wp_version in wp-content/plugins/advanced-tabs-block/includes/classes/block-category.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-tabs-block/includes/classes/patterns-category.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-tabs-block/includes/classes/block-category.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/advanced-tabs-block/includes/patterns/patterns.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-tabs-block/includes/classes/block-patterns.php: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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in advanced-tabs-block/assets to your readme.txt
advanced-tabs-block/plugin.php 85% from 13 tests
The main file in "Advanced Tabs Gutenberg Block" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.4")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-tabs-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin840 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 103 | 171 | 592 |
CSS | 5 | 36 | 6 | 177 |
JSON | 2 | 0 | 0 | 55 |
JavaScript | 5 | 1 | 4 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin