89% flex-guten

Code Review | Flex Guten - A Multipurpose Gutenberg Blocks Plugin

WordPress plugin Flex Guten - A Multipurpose Gutenberg Blocks Plugin scored89%from 54 tests.

About plugin

  • Plugin page: flex-guten
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 11, 2023
  • Latest release: Oct 3, 2023
  • Number of updates: 13
  • Update frequency: every 15.9 days
  • Top authors: dragwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /990 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼3.46ms] Passed 4 tests

An overview of server-side resources used by Flex Guten - A Multipurpose Gutenberg Blocks Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2144.94 ▲2.61
Dashboard /wp-admin3.48 ▲0.1751.88 ▼0.63
Posts /wp-admin/edit.php3.59 ▲0.2450.00 ▼7.08
Add New Post /wp-admin/post-new.php6.10 ▲0.2189.34 ▼8.73
Media Library /wp-admin/upload.php3.40 ▲0.1739.61 ▲8.22

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 109 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Flex Guten - A Multipurpose Gutenberg Blocks Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.17 ▼0.201.91 ▲0.2842.47 ▼2.18
Dashboard /wp-admin2,198 ▲215.58 ▼0.0985.46 ▼5.2142.67 ▲2.27
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0035.62 ▼7.1238.52 ▼0.01
Add New Post /wp-admin/post-new.php6,210 ▲4,68419.25 ▼3.82970.63 ▲299.9238.01 ▼22.69
Media Library /wp-admin/upload.php1,397 ▼64.17 ▲0.0298.76 ▼6.3046.84 ▲4.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: post, pinterest, product, grid, review...

flex-guten/plugin.php 85% from 13 tests

This is the main PHP file of "Flex Guten - A Multipurpose Gutenberg Blocks Plugin" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("flex-guten.php" instead of "plugin.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin35,410 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
JSON60033,606
PHP182994871,030
JavaScript5696457
CSS1106317

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity15.30
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods63
▷ Static methods1930.16%
▷ Public methods6095.24%
▷ Protected methods00.00%
▷ Private methods34.76%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/images/pin-btn.png0.68KB0.76KB0.00%
build/images/search-bubbles.32913a21.png7.75KB7.85KB0.00%
includes/assets/images/search-bubbles.png7.75KB7.85KB0.00%
build/images/pin-btn.b0b2d8d4.png0.68KB0.76KB0.00%