99% gt-remove-block-spacing

Code Review | GT Remove Block Spacing

WordPress plugin GT Remove Block Spacing scored 99% from 54 tests.

About plugin

  • Plugin page: gt-remove-block-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 5.8.1
  • First release: May 14, 2020
  • Latest release: May 14, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: germanthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 699 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼147.51ms] Passed 4 tests

A check of server-side resources used by GT Remove Block Spacing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0135.48 ▲5.23
Dashboard /wp-admin3.07 ▲0.0144.36 ▼4.96
Posts /wp-admin/edit.php3.12 ▲0.0145.57 ▼0.43
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.69 ▼581.79
Media Library /wp-admin/upload.php3.01 ▲0.0134.98 ▼2.85

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

GT Remove Block Spacing: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲13315.89 ▲0.3010.16 ▲0.4048.66 ▼3.22
Dashboard /wp-admin2,973 ▲395.95 ▲0.02147.88 ▼13.79113.57 ▼2.45
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0269.28 ▼1.5889.85 ▲2.40
Add New Post /wp-admin/post-new.php1,693 ▲8918.79 ▼0.05398.69 ▼0.07125.71 ▲12.20
Media Library /wp-admin/upload.php1,748 ▼34.98 ▼0.03156.02 ▲0.13127.16 ▲13.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: spacing, blocks, editor, gutenberg

gt-remove-block-spacing/plugin.php 85% from 13 tests

This is the main PHP file of "GT Remove Block Spacing" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gt-remove-block-spacing.php" instead of "plugin.php")
  • Domain Path: The domain path folder was not found ("/languages/")

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
Everything looks great! No dangerous files found in this plugin126 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3151274
PHP194433
Sass23017
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin