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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.12ms] Passed 4 tests
Analyzing server-side resources used by GTG Product Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.31 ▼5.03 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.73 ▼3.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.43 ▼14.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.47 ▼14.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.20 ▼0.49 |
Server storage [IO: ▲1.50MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
GTG Product Blocks: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.37 ▲0.02 | 1.86 ▼0.19 | 45.45 ▲2.83 |
Dashboard /wp-admin | 2,210 ▲33 | 5.52 ▼0.01 | 88.62 ▼4.29 | 39.99 ▼4.52 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.98 ▼0.02 | 35.01 ▼11.05 | 40.73 ▼7.01 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 22.98 ▼0.02 | 641.41 ▼25.30 | 54.16 ▲0.97 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.22 ▲0.07 | 94.99 ▼15.46 | 42.52 ▼4.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in gtg-product-blocks/assets to your readme.txt
gtg-product-blocks/gtg-product-blocks.php Passed 13 tests
The main PHP file in "GTG Product Blocks" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
Product gutenberg blocks, designs everything you need for gutenberg editor
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
Good job! No executable or dangerous file extensions detected741 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 167 | 342 | 726 |
JavaScript | 7 | 1 | 22 | 11 |
CSS | 3 | 0 | 0 | 3 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 50 | |
▷ Static methods | 8 | 16.00% |
▷ Public methods | 48 | 96.00% |
▷ Protected methods | 1 | 2.00% |
▷ Private methods | 1 | 2.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin