90% gtg-product-blocks

Code Review | GTG Product Blocks

WordPress plugin GTG Product Blocks scored90%from 54 tests.

About plugin

  • Plugin page: gtg-product-blocks
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5
  • WordPress version: 6.3.1
  • First release: Nov 30, 2020
  • Latest release: Dec 3, 2020
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: gutengeek (100%)Otto42 (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /408 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.31 ▼5.03
Dashboard /wp-admin3.31 ▲0.0147.73 ▼3.22
Posts /wp-admin/edit.php3.36 ▲0.0048.43 ▼14.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.47 ▼14.13
Media Library /wp-admin/upload.php3.23 ▲0.0036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.37 ▲0.021.86 ▼0.1945.45 ▲2.83
Dashboard /wp-admin2,210 ▲335.52 ▼0.0188.62 ▼4.2939.99 ▼4.52
Posts /wp-admin/edit.php2,116 ▲131.98 ▼0.0235.01 ▼11.0540.73 ▼7.01
Add New Post /wp-admin/post-new.php1,543 ▲1522.98 ▼0.02641.41 ▼25.3054.16 ▲0.97
Media Library /wp-admin/upload.php1,421 ▲214.22 ▲0.0794.99 ▼15.4642.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
You can look at the official 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:
LanguageFilesBlank linesComment linesLines of code
PHP12167342726
JavaScript712211
CSS3003
JSON1001

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 code0.45
Average class complexity14.71
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods50
▷ Static methods816.00%
▷ Public methods4896.00%
▷ Protected methods12.00%
▷ Private methods12.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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