83% guten-forms-akismet

Code Review | Gutenberg Forms Add-on for Akismet

WordPress plugin Gutenberg Forms Add-on for Akismet scored83%from 54 tests.

About plugin

  • Plugin page: guten-forms-akismet
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Jul 25, 2020
  • Latest release: May 19, 2022
  • Number of updates: 4
  • Update frequency: every 166.0 days
  • Top authors: Jack Kitterhing (50%)giucu91 (50%)munirkamal (50%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,117 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Gutenberg Forms Add-on for Akismet
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.37 ▼4.54
Dashboard /wp-admin3.31 ▲0.0144.10 ▼5.04
Posts /wp-admin/edit.php3.36 ▲0.0145.74 ▼7.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.01 ▼22.73
Media Library /wp-admin/upload.php3.23 ▲0.0136.29 ▲2.85

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Gutenberg Forms Add-on for Akismet
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.771.73 ▼0.1144.50 ▲2.44
Dashboard /wp-admin2,209 ▲244.88 ▼0.1399.03 ▼8.2638.61 ▼7.46
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0034.65 ▼6.6237.39 ▲4.46
Add New Post /wp-admin/post-new.php1,542 ▲2118.26 ▼4.92647.32 ▲12.0162.24 ▲9.20
Media Library /wp-admin/upload.php1,382 ▼94.20 ▼0.00103.02 ▲3.8342.57 ▼1.46

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
Good news, no errors were detected

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
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/guten-forms-akismet/addon.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/guten-forms-akismet/plugin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/guten-forms-akismet/src/submission.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/guten-forms-akismet/src/registration.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (WordPress Form Builder Plugin - Gutenberg Forms), #2 (Adding New Field), #3 (Rearrange Form Fields via Drag & Drop or Up & Down buttons.), #4 (Form Settings), #5 (Email Builder), #6 (Form Styles)
  • Tags: There are too many tags (25 tag instead of maximum 10)
The official readme.txt is a good inspiration

guten-forms-akismet/plugin.php 85% from 13 tests

The primary PHP file in "Gutenberg Forms Add-on for Akismet" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("guten-forms-akismet.php" instead of "plugin.php")
  • 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin267 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP55935153
JSON10062
XML40028
Markdown123024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity2.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.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
PNG images were not found in this plugin