90% birthday-mails-bp

Code Review | Birthday mails bp

WordPress plugin Birthday mails bp scored90%from 54 tests.

About plugin

  • Plugin page: birthday-mails-bp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2017
  • Latest release: Jan 11, 2017
  • Number of updates: 9
  • Update frequency: every 7.6 days
  • Top authors: alexhal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,593 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by Birthday mails bp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.94 ▼1.20
Dashboard /wp-admin3.37 ▲0.0753.06 ▲0.64
Posts /wp-admin/edit.php3.49 ▲0.1350.92 ▲2.04
Add New Post /wp-admin/post-new.php5.95 ▲0.0796.00 ▼0.06
Media Library /wp-admin/upload.php3.30 ▲0.0739.41 ▲3.98

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Birthday mails bp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▼0.012.19 ▲0.4140.49 ▼3.48
Dashboard /wp-admin2,198 ▲185.65 ▲0.0393.32 ▲3.9439.31 ▼6.06
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0539.92 ▲4.3037.19 ▼0.88
Add New Post /wp-admin/post-new.php1,532 ▲623.03 ▲5.31674.99 ▼23.5654.24 ▼4.37
Media Library /wp-admin/upload.php1,403 ▲64.22 ▼0.2095.98 ▼6.6943.60 ▼5.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === birthday-mails-bp === )
Please take inspiration from this readme.txt

birthday-mails-bp/birthday-mails-bp.php Passed 13 tests

The main PHP file in "Birthday mails bp" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
A simple WordPress plugin to modify WPLMS template

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin566 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39191358
JavaScript16245179
CSS1158729

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity32.50
▷ Minimum class complexity18.00
▷ Maximum class complexity47.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png37.32KB16.19KB▼ 56.63%
assets/screenshot-2.png17.58KB7.46KB▼ 57.55%