10% wp-feedmail

Code Review | WP-Feedmail

WordPress plugin WP-Feedmail scored10%from 54 tests.

About plugin

  • Plugin page: wp-feedmail
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.4.1
  • WordPress version: 6.3.1
  • First release: Aug 25, 2012
  • Latest release: Jan 22, 2013
  • Number of updates: 32
  • Update frequency: every 4.8 days
  • Top authors: vipinpg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,713 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-feedmail/wp-feedmail.php+213
    Undefined variable: wp_version

Server metrics [RAM: ▼1.71MB] [CPU: ▼56.72ms] Passed 4 tests

Server-side resources used by WP-Feedmail
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.198.61 ▼30.81
Dashboard /wp-admin2.30 ▼1.0111.97 ▼37.87
Posts /wp-admin/edit.php2.30 ▼1.0611.48 ▼36.84
Add New Post /wp-admin/post-new.php2.30 ▼3.5911.90 ▼121.35
Media Library /wp-admin/upload.php2.30 ▼0.939.58 ▼24.17
Feedmail /wp-admin/admin.php?page=feedmail_manage2.2911.33
Settings /wp-admin/admin.php?page=feedmail_config2.2912.69

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 1 new table, 11 new options
New tables
wp_feedmail
New WordPress options
feedmail_version
casper_deldata
theysaidso_admin_options
db_upgraded
can_compress_scripts
casper_admng
widget_recent-comments
widget_theysaidso_widget
casper_feedburner_id
widget_feedmail
...

Browser metrics Passed 4 tests

A check of browser resources used by WP-Feedmail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9114.32 ▼0.051.69 ▲0.0537.71 ▼0.56
Dashboard /wp-admin2,213 ▲365.55 ▼0.1288.17 ▲0.0072.68 ▲28.39
Posts /wp-admin/edit.php2,136 ▲361.95 ▼0.0137.93 ▲0.7433.82 ▼0.99
Add New Post /wp-admin/post-new.php1,552 ▲1523.14 ▲5.11691.13 ▲58.9256.13 ▼11.33
Media Library /wp-admin/upload.php1,430 ▲364.18 ▲0.0397.56 ▼4.4174.56 ▲31.97
Feedmail /wp-admin/admin.php?page=feedmail_manage7982.0024.6523.17
Settings /wp-admin/admin.php?page=feedmail_config9242.0125.3630.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in feedmail_widget is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie tables detected upon uninstall: 1 table
    • wp_feedmail
  • Zombie WordPress options were found after uninstall: 10 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • casper_admng
    • casper_deldata
    • widget_feedmail
    • casper_feedburner_id
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=feedmail_config
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in feedmail_widget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/admin.php?page=feedmail_config
    • > Notice in wp-content/plugins/wp-feedmail/wp-feedmail.php+292
    Undefined index: updated
    • > GET request to /wp-admin/admin.php?page=feedmail_config
    • > Notice in wp-content/plugins/wp-feedmail/wp-feedmail.php+362
    Undefined variable: yearcright

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-feedmail/wp-feedmail.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Configuration page for feedmail.), #2 (Feedmail Subscribers list.), #3 (Feedmail Subscription form.)
The official readme.txt might help

wp-feedmail/wp-feedmail.php 92% from 13 tests

"WP-Feedmail" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 222 characters long)

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
Good job! No executable or dangerous file extensions detected343 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP18065274
CSS13145
JavaScript12024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
feedmail-icon.png0.64KB0.61KB▼ 5.48%
screenshot-3.png6.56KB2.78KB▼ 57.56%