10% connections-business-directory-anniversary-and-birthday-emails

Code Review | Connections Business Directory Anniversary and Birthday Emails

WordPress plugin Connections Business Directory Anniversary and Birthday Emails scored10%from 54 tests.

About plugin

  • Plugin page: connections-busin...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Feb 19, 2018
  • Latest release: Apr 3, 2023
  • Number of updates: 26
  • Update frequency: every 72.0 days
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,828 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Error in wp-content/plugins/connections-business-directory-anniversary-and-birthday-emails/connections-business-directory-anniversary-and-birthday-emails.php+1253
    Uncaught Error: Class 'cnDate' not found in wp-content/plugins/connections-business-directory-anniversary-and-birthday-emails/connections-business-directory-anniversary-and-birthday-emails.php:1253
    Stack trace:
    #0 wp-content/plugins/connections-business-directory-anniversary-and-birthday-emails/connections-business-directory-anniversary-and-birthday-emails.php(1222): Connections_Anniversary_and_Birthday_Emails::addCronEvents()
    #1 wp-includes/class-wp-hook.php(310): Connections_Anniversary_and_Birthday_Emails::activate()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(693): do_action()

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

A check of server-side resources used by Connections Business Directory Anniversary and Birthday Emails
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.48 ▲2.15
Dashboard /wp-admin3.31 ▲0.0058.77 ▲9.23
Posts /wp-admin/edit.php3.36 ▲0.0057.41 ▲7.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.13 ▼1.61
Media Library /wp-admin/upload.php3.23 ▲0.0038.81 ▲2.34

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

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

Browser metrics Passed 4 tests

Connections Business Directory Anniversary and Birthday Emails: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.104.87 ▲3.2253.77 ▲13.22
Dashboard /wp-admin2,206 ▲184.87 ▼0.99103.63 ▼3.6744.40 ▲0.43
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0346.08 ▲10.4437.39 ▲3.54
Add New Post /wp-admin/post-new.php1,514 ▼1017.52 ▼5.38696.12 ▲24.1656.24 ▼2.98
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.13107.45 ▼9.7646.63 ▼1.42

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
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: birthday, anniversary, email, business directory

connections-business-directory-anniversary-and-birthday-emails/connections-business-directory-anniversary-and-birthday-emails.php 85% from 13 tests

The main file in "Connections Business Directory Anniversary and Birthday Emails" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Plugin Name: Please shorten the plugin name (currently 74 characters long instead of max. 70)
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected841 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1242418701
PO File14247140

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods30
▷ Static methods1446.67%
▷ Public methods2686.67%
▷ Protected methods00.00%
▷ Private methods413.33%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
No PNG images were found in this plugin