Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.58ms] Passed 4 tests
Analyzing server-side resources used by Target Blank to Button Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.55 ▼5.83 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.61 ▼2.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.48 ▼1.37 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 99.61 ▲6.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 40.64 ▲3.34 |
Button block target /wp-admin/themes.php?page=tbtbb-submenu-page | 3.35 | 44.40 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Target Blank to Button Block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲140 | 13.60 ▼0.42 | 5.82 ▲4.10 | 40.74 ▼3.24 |
Dashboard /wp-admin | 2,213 ▲22 | 4.88 ▼1.02 | 107.97 ▲1.14 | 40.15 ▼3.40 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.03 | 39.61 ▼1.02 | 35.76 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.70 ▼0.05 | 679.34 ▼9.80 | 54.22 ▼0.34 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.23 ▲0.03 | 95.99 ▼10.15 | 41.83 ▼9.49 |
Button block target /wp-admin/themes.php?page=tbtbb-submenu-page | 814 | 2.03 | 29.00 | 30.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- 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
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/target-blank-to-button-block/public/tbtbb-public.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/target-blank-to-button-block/admin/tbtbb-admin.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: blank, link, gutenberg, button, block...
target-blank-to-button-block/target-blank-to-button-block.php Passed 13 tests
"Target Blank to Button Block" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
Add Target Blank to Gutenberg Button Block. Provisory fix to add target blank to button blocks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin91 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 7 | 21 | 91 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
7 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 34.01KB | 8.70KB | ▼ 74.42% |
assets/icon-128x128.png | 4.02KB | 1.13KB | ▼ 71.89% |
assets/banner-1544x500.png | 14.97KB | 5.89KB | ▼ 60.62% |
assets/screenshot-3.png | 46.36KB | 12.64KB | ▼ 72.74% |
assets/screenshot-2.png | 21.29KB | 4.97KB | ▼ 76.63% |