84% daily-greetings

Code Review | Everyday greetings

WordPress plugin Everyday greetings scored84%from 54 tests.

About plugin

  • Plugin page: daily-greetings
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2016
  • Latest release: Apr 6, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: glena (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /600 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.12ms] Passed 4 tests

An overview of server-side resources used by Everyday greetings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.62 ▼6.34
Dashboard /wp-admin3.31 ▲0.0149.41 ▼2.89
Posts /wp-admin/edit.php3.36 ▲0.0046.02 ▼6.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.21 ▼4.73
Media Library /wp-admin/upload.php3.23 ▲0.0037.06 ▲2.46

Server storage [IO: ▲0.00MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Everyday greetings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼1.111.70 ▼0.6741.65 ▼2.18
Dashboard /wp-admin2,206 ▲185.90 ▲0.97107.35 ▼11.0942.19 ▼5.34
Posts /wp-admin/edit.php2,092 ▲62.00 ▼0.0439.42 ▲0.8434.39 ▲2.56
Add New Post /wp-admin/post-new.php1,542 ▲2817.93 ▲0.54644.65 ▼44.9062.72 ▲4.73
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.08102.58 ▼8.5143.00 ▼4.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • 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 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/daily-greetings/WP_Daily_Greetings.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: hi, welcome, greetings

daily-greetings/WP_Daily_Greetings.php 92% from 13 tests

The main PHP file in "Everyday greetings" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
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 ("daily-greetings.php" instead of "WP_Daily_Greetings.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
PNG images were not found in this plugin