84% tdlc-birthdays

Code Review | TDLC Birthdays

WordPress plugin TDLC Birthdays scored84%from 54 tests.

About plugin

  • Plugin page: tdlc-birthdays
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 14, 2009
  • Latest release: Jan 8, 2021
  • Number of updates: 98
  • Update frequency: every 41.9 days
  • Top authors: ptitneo (78.57%)Venutius (22.45%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /29,343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by TDLC Birthdays
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.76 ▲0.57
Dashboard /wp-admin3.31 ▲0.0151.07 ▼3.31
Posts /wp-admin/edit.php3.36 ▲0.0044.74 ▼5.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.36 ▼4.18
Media Library /wp-admin/upload.php3.23 ▲0.0038.41 ▲0.95

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for TDLC Birthdays
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.421.85 ▼0.0343.90 ▼0.62
Dashboard /wp-admin2,209 ▲184.85 ▼0.0297.21 ▼13.7239.86 ▲1.89
Posts /wp-admin/edit.php2,086 ▼62.14 ▲0.1535.47 ▼6.1339.23 ▼0.02
Add New Post /wp-admin/post-new.php1,533 ▲523.21 ▲4.80679.37 ▲31.6159.64 ▲3.14
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.03107.33 ▼2.2546.69 ▲1.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 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/tdlc-birthdays/core.php:237

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

tdlc-birthdays/tdlc-birthdays.php 92% from 13 tests

This is the main PHP file of "TDLC Birthdays" version 1.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 251 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 detected963 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File8231232605
PHP23467358

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.40
Average class complexity21.33
▷ Minimum class complexity8.00
▷ Maximum class complexity30.00
Average method complexity4.81
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1381.25%
▷ Protected methods00.00%
▷ Private methods318.75%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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