10% wp-email-reminder

Code Review | WP Email Reminder

WordPress plugin WP Email Reminder scored10%from 54 tests.

About plugin

  • Plugin page: wp-email-reminder
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 15, 2012
  • Latest release: Oct 19, 2012
  • Number of updates: 13
  • Update frequency: every 2.1 days
  • Top authors: lucy.linder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /774 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > User error in wp-content/plugins/wp-email-reminder/inc/activate.php+14
    Please, ensure that you activated wp-email-capture before activating this plugin

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.02ms] Passed 4 tests

A check of server-side resources used by WP Email Reminder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.71 ▲0.13
Dashboard /wp-admin3.38 ▲0.0747.16 ▲2.86
Posts /wp-admin/edit.php3.49 ▲0.1349.23 ▲1.23
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.37 ▼15.45
Media Library /wp-admin/upload.php3.30 ▲0.0734.44 ▼1.98
WP Email Reminder /wp-admin/options-general.php?page=wp_email_reminder3.2429.72

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

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

Browser metrics Passed 4 tests

WP Email Reminder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.22 ▼1.201.75 ▼0.5343.01 ▼9.70
Dashboard /wp-admin2,207 ▲225.83 ▼0.0598.66 ▼12.2838.54 ▼0.73
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0238.52 ▼1.1134.73 ▼4.42
Add New Post /wp-admin/post-new.php1,529 ▲1023.22 ▼0.07674.02 ▼11.4362.03 ▲12.55
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0993.48 ▼23.5140.97 ▼7.08
WP Email Reminder /wp-admin/options-general.php?page=wp_email_reminder1,0312.0935.9645.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp_email_reminder
    • > Notice in wp-content/plugins/wp-email-reminder/inc/menu_page.php+50
    Trying to access array offset on value of type bool

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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'REM_PATH/inc/activate.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-email-reminder/inc/include.php on line 2
    • > PHP Warning
      require_once(REM_PATH/inc/activate.php): failed to open stream: No such file or directory in wp-content/plugins/wp-email-reminder/inc/include.php on line 2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-email-reminder/wp-email-reminder.php on line 22
    • > PHP Warning
      Use of undefined constant REM_PATH - assumed 'REM_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-email-reminder/inc/include.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-email-reminder/wp-email-reminder.php:85

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please add at least on tag
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-email-reminder === )
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

wp-email-reminder/wp-email-reminder.php 92% from 13 tests

This is the main PHP file of "WP Email Reminder" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 246 characters long)

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
There were no executable files found in this plugin616 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP834736458
JavaScript221589
CSS2132869

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
15 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/black-tie/images/ui-icons_ffcf29_256x240.png5.23KB4.11KB▼ 21.49%
inc/black-tie/images/ui-icons_bbbbbb_256x240.png4.27KB4.11KB▼ 3.78%
inc/black-tie/images/ui-icons_4ca300_256x240.png5.23KB4.11KB▼ 21.49%
inc/black-tie/images/ui-icons_ffffff_256x240.png4.27KB4.11KB▼ 3.78%
inc/black-tie/images/ui-bg_inset-hard_55_ffeb80_1x100.png0.14KB0.15KB0.00%