84% wp-feedburner-email-subscriber

Code Review | WP Feedburner Email Subscriber

WordPress plugin WP Feedburner Email Subscriber scored 84% from 54 tests.

About plugin

  • Plugin page: wp-feedburner-ema...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 5.8.1
  • First release: Oct 21, 2015
  • Latest release: Dec 12, 2018
  • Number of updates: 14
  • Update frequency: every 82.0 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 6,272 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼146.62ms] Passed 4 tests

An overview of server-side resources used by WP Feedburner Email Subscriber
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0230.03 ▼3.75
Dashboard /wp-admin3.08 ▲0.0246.94 ▲1.71
Posts /wp-admin/edit.php3.13 ▲0.0245.99 ▼0.34
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.74 ▼573.50
Media Library /wp-admin/upload.php3.02 ▲0.0132.31 ▼8.88

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_cb_email_subscribes

Browser metrics Passed 4 tests

WP Feedburner Email Subscriber: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲11015.84 ▲0.149.34 ▼1.0543.62 ▼5.30
Dashboard /wp-admin2,973 ▲395.89 ▼0.08131.18 ▼8.18109.39 ▲4.43
Posts /wp-admin/edit.php2,739 ▲32.72 ▲0.0166.33 ▲2.7993.56 ▲3.35
Add New Post /wp-admin/post-new.php1,672 ▼318.88 ▲0.02356.49 ▼37.16114.02 ▼1.21
Media Library /wp-admin/upload.php1,810 ▲65.02 ▼0.03139.95 ▼2.26117.52 ▼3.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_cb_email_subscribes

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-feedburner-email-subscriber/index.php:16

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: email subscriber, feedburner, wp email subscriber widget, feedburner email subscriber, wordpress email subscriber

wp-feedburner-email-subscriber/index.php 92% from 13 tests

Analyzing the main PHP file in "WP Feedburner Email Subscriber" version 1.1.1
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-feedburner-email-subscriber.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin101 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP126979
CSS12322

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin