83% awesome-guten-text

Code Review | Awesome Text Block for Gutenberg WordPress

WordPress plugin Awesome Text Block for Gutenberg WordPress scored 83% from 54 tests.

About plugin

  • Plugin page: awesome-guten-text
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Mar 15, 2023
  • Number of updates: 23
  • Update frequency: every 44.2 days
  • Top authors: wpqode (43.48%)grandplugin (39.13%)frohadpro (26.09%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 11,171 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.04MB] [CPU: ▼4.01ms] Passed 4 tests

Server-side resources used by Awesome Text Block for Gutenberg WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.74 ▼0.01
Dashboard /wp-admin3.35 ▲0.0442.66 ▼4.87
Posts /wp-admin/edit.php3.40 ▲0.0447.73 ▲0.96
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.13 ▼11.40
Media Library /wp-admin/upload.php3.27 ▲0.0432.93 ▲0.24

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Awesome Text Block for Gutenberg WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.69 ▼0.981.89 ▼0.1739.24 ▼3.65
Dashboard /wp-admin2,206 ▲185.83 ▲0.7296.02 ▼9.2638.85 ▼1.73
Posts /wp-admin/edit.php2,096 ▲42.00 ▲0.0237.44 ▼3.3833.54 ▼7.33
Add New Post /wp-admin/post-new.php6,417 ▲4,89620.65 ▼2.95918.01 ▲280.4055.99 ▲3.51
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.0195.12 ▼6.4741.97 ▼2.01

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/awesome-guten-text/awe-guten-text.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_script() in wp-content/plugins/awesome-guten-text/src/block-alert-box/index.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: Please take inspiration from this readme.txt

awesome-guten-text/awe-guten-text.php 77% from 13 tests

Analyzing the main PHP file in "Awesome Text Block for Gutenberg WordPress" version 2.0.0
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-guten-text.php" instead of "awe-guten-text.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS32227484
PHP31545245
JavaScript26212

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/img/lay-two.png4.47KB2.43KB▼ 45.73%
src/img/lay-three.png5.19KB2.55KB▼ 50.81%
src/img/lay-alert-1.png2.76KB1.57KB▼ 43.08%
build/images/lay-alert-1.fb4290b8.png2.76KB1.57KB▼ 43.08%
build/images/lay-one.cf7e7bc1.png6.85KB3.43KB▼ 49.91%