10% name-day-reminder

Code Review | Name Day Reminder

WordPress plugin Name Day Reminder scored 10% from 54 tests.

About plugin

  • Plugin page: name-day-reminder
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-2.8
  • WordPress version: 5.8.1
  • First release: Dec 29, 2012
  • Latest release: Feb 27, 2013
  • Number of updates: 20
  • Update frequency: every 3.0 days
  • Top authors: janis.krauklis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,191 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/name-day-reminder/namedayreminder.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; NameDayReminderWidget has a deprecated constructor

Server metrics [RAM: ▼1.81MB] [CPU: ▼190.01ms] Passed 4 tests

A check of server-side resources used by Name Day Reminder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.82 ▼1.015.36 ▼31.04
Dashboard /wp-admin1.84 ▼1.225.30 ▼46.01
Posts /wp-admin/edit.php1.84 ▼1.275.40 ▼35.45
Add New Post /wp-admin/post-new.php1.84 ▼3.594.37 ▼647.52
Media Library /wp-admin/upload.php1.84 ▼1.168.16 ▼26.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 2 new options
New tables
wp_name_day_reminder
New WordPress options
widget_namedayreminderwidget
jal_db_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Name Day Reminder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.16 ▲0.107.94 ▼1.2747.50 ▼5.14
Dashboard /wp-admin2,973 ▲395.86 ▼0.30147.81 ▼2.13127.55 ▲7.92
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0162.50 ▼2.1494.70 ▲0.87
Add New Post /wp-admin/post-new.php1,683 ▼018.71 ▲0.03373.70 ▼15.58111.07 ▼10.98
Media Library /wp-admin/upload.php1,807 ▼05.00 ▲0.02155.32 ▼0.78126.24 ▼1.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/name-day-reminder/namedayreminder.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; NameDayReminderWidget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • jal_db_version
    • widget_namedayreminderwidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/name-day-reminder/namedayreminder.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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 your attention:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (This is the widget control panel of the Name Day Reminder plugin)
Please take inspiration from this readme.txt

name-day-reminder/namedayreminder.php 92% from 13 tests

The primary PHP file in "Name Day Reminder" version 0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("name-day-reminder.php" instead of "namedayreminder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin222 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12110195
CSS10027

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods350.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin