83% feedblitz-email-subscription

Code Review | Subscription Form for Feedblitz

WordPress plugin Subscription Form for Feedblitz scored83%from 54 tests.

About plugin

  • Plugin page: feedblitz-email-s...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2013
  • Latest release: Sep 19, 2018
  • Number of updates: 74
  • Update frequency: every 25.4 days
  • Top authors: wptaskforce (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /5,634 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.94ms] Passed 4 tests

An overview of server-side resources used by Subscription Form for Feedblitz
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.45 ▲1.91
Dashboard /wp-admin3.36 ▲0.0551.40 ▼5.05
Posts /wp-admin/edit.php3.41 ▲0.0553.92 ▲5.80
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.53 ▼12.63
Media Library /wp-admin/upload.php3.28 ▲0.0537.80 ▲4.00

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_feedblitz-email-subscription
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Subscription Form for Feedblitz: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.29 ▼0.301.90 ▲0.0245.00 ▲4.37
Dashboard /wp-admin2,214 ▲345.65 ▼0.0989.11 ▼4.0343.28 ▼0.95
Posts /wp-admin/edit.php2,116 ▲162.00 ▼0.0042.48 ▲8.5235.97 ▼1.99
Add New Post /wp-admin/post-new.php1,558 ▲1322.79 ▼0.35611.30 ▼46.8366.20 ▲7.71
Media Library /wp-admin/upload.php1,419 ▲194.23 ▲0.04101.53 ▼8.7245.76 ▼2.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_feedblitz-email-subscription
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% 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 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 take a closer look at the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feedblitz-email-subscription/lib/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/feedblitz-email-subscription/lib/dw_widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/feedblitz-email-subscription/feedblitz_form.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/feedblitz-email-subscription/lib/feedblitz_email_widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/feedblitz-email-subscription/lib/feedblitz_email_subscription_shortcode.php:40

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 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Widget Settings), #2 (Widget in frontend), #3 (Example of FeedBlitz.com settings)
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

feedblitz-email-subscription/feedblitz_form.php 92% from 13 tests

The primary PHP file in "Subscription Form for Feedblitz" version 1.0.9 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("feedblitz-email-subscription.php" instead of "feedblitz_form.php")

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 plugin253 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53634242
CSS12011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.00
▷ Minimum class complexity5.00
▷ Maximum class complexity17.00
Average method complexity3.86
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin