78% block-email-formidable-form

Code Review | Blacklist Unwanted Email - Formidable Forms

WordPress plugin Blacklist Unwanted Email - Formidable Forms scored78%from 54 tests.

About plugin

  • Plugin page: block-email-formi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 17, 2019
  • Latest release: Oct 17, 2019
  • Number of updates: 11
  • Update frequency: every 4.7 days
  • Top authors: abahalkar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /881 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Blacklist Unwanted Email - Formidable Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.47 ▼6.19
Dashboard /wp-admin3.32 ▲0.0142.22 ▼5.79
Posts /wp-admin/edit.php3.37 ▲0.0149.67 ▲6.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.79 ▼8.58
Media Library /wp-admin/upload.php3.24 ▲0.0133.90 ▼0.66

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Blacklist Unwanted Email - Formidable Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.21 ▼1.162.06 ▲0.1036.99 ▼7.75
Dashboard /wp-admin2,215 ▲274.86 ▼0.05108.82 ▼7.6739.31 ▼4.21
Posts /wp-admin/edit.php2,097 ▲52.04 ▲0.0140.82 ▲3.2536.41 ▲1.58
Add New Post /wp-admin/post-new.php1,545 ▲1223.09 ▼0.09667.37 ▼34.3856.39 ▼16.95
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.03100.20 ▼8.8742.08 ▼4.95

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 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)
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/block-email-formidable-form/block-email-formidable-forms.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-email-formidable-form/inc/wpstudio_ffbfe_activation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-email-formidable-form/inc/wpstudio_ffbfe_settings.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
You can take inspiration from this readme.txt

block-email-formidable-form/block-email-formidable-forms.php 85% from 13 tests

"Blacklist Unwanted Email - Formidable Forms" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("block-email-formidable-form.php" instead of "block-email-formidable-forms.php")

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 detected150 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP95334141
CSS1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/block-email-ff-icon.png2.13KB1.51KB▼ 29.02%