94% duogeek-blocks

Code Review | DuoGeek - Gutenberg Blocks

WordPress plugin DuoGeek - Gutenberg Blocks scored 94% from 53 tests.

About plugin

  • Plugin page: duogeek-blocks
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 5.8.1
  • First release: Jun 15, 2020
  • Latest release: Jun 16, 2020
  • Number of updates: 6
  • Update frequency: every 2.7 days
  • Top authors: voboghure (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 376 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼315.79ms] Passed 4 tests

An overview of server-side resources used by DuoGeek - Gutenberg Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1135.20 ▲3.76
Dashboard /wp-admin3.16 ▲0.1132.42 ▼11.14
Posts /wp-admin/edit.php3.21 ▲0.1140.67 ▼1.58
Add New Post /wp-admin/post-new.php5.08 ▼0.3566.97 ▼1,242.42
Media Library /wp-admin/upload.php3.10 ▲0.1029.95 ▼8.00

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

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

Browser metrics Passed 4 tests

DuoGeek - Gutenberg Blocks: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,693 ▲11115.95 ▲0.0512.68 ▲3.6639.15 ▼6.80
Dashboard /wp-admin2,997 ▲1475.97 ▲0.12138.04 ▲8.66106.51 ▲6.54
Posts /wp-admin/edit.php2,708 ▲22.69 ▲0.0065.17 ▼0.4194.37 ▲0.05
Add New Post /wp-admin/post-new.php1,665 ▲1419.57 ▲2.15375.95 ▲24.47109.64 ▲1.80
Media Library /wp-admin/upload.php1,777 ▲54.98 ▼0.02144.55 ▼18.36107.87 ▼10.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/duogeek-blocks/src/blocks/block-container/index.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/duogeek-blocks/loader.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/duogeek-blocks/src/blocks/block-sharing/index.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/duogeek-blocks/src/blocks/block-post-grid/index.php:431

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
6 plugin tags: gutenberg blocks, gutenberg, blocks, block, editor...

duogeek-blocks/duogeek-blocks.php 92% from 13 tests

This is the main PHP file of "DuoGeek - Gutenberg Blocks" version 0.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected18,377 lines of code in 113 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript666068216,829
CSS141,850504,380
SVG3003,927
Sass2348712,515
PHP7124217726

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin