10% dbwd-send-link

Code Review | DBWD Send Link to Page

WordPress plugin DBWD Send Link to Page scored 10% from 54 tests.

About plugin

  • Plugin page: dbwd-send-link
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8
  • WordPress version: 5.8.1
  • First release: Feb 12, 2013
  • Latest release: Dec 17, 2013
  • Number of updates: 53
  • Update frequency: every 5.8 days
  • Top authors: Debra Berube (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 3,018 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method DBWD_Send_Link_Lite::setDefaultData() should not be called statically

Server metrics [RAM: ▲0.01MB] [CPU: ▼143.31ms] Passed 4 tests

A check of server-side resources used by DBWD Send Link to Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1244.06 ▲19.42
Dashboard /wp-admin3.07 ▲0.0250.72 ▲2.02
Posts /wp-admin/edit.php3.12 ▲0.0243.81 ▼4.56
Add New Post /wp-admin/post-new.php5.43 ▼0.0093.49 ▼579.80
Media Library /wp-admin/upload.php3.01 ▲0.0142.46 ▲9.09
Send Link Lite /wp-admin/admin.php?page=DBWD_Send_Link_Lite2.9628.55
DBWD Software /wp-admin/admin.php?page=dbwd-software2.9629.79

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 83 new files
Database: no new tables, 2 new options
New WordPress options
DBWD_Send_Link_Lite
DBWD_Menu_Control

Browser metrics Passed 4 tests

This is an overview of browser requirements for DBWD Send Link to Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲13715.76 ▼0.1310.21 ▼0.3552.95 ▼3.35
Dashboard /wp-admin2,991 ▲575.91 ▼0.03148.92 ▼14.25150.16 ▲33.96
Posts /wp-admin/edit.php2,768 ▲292.59 ▼0.0970.87 ▲2.5295.61 ▼3.31
Add New Post /wp-admin/post-new.php1,521 ▼15118.61 ▼0.23382.26 ▼13.65116.47 ▼3.04
Media Library /wp-admin/upload.php1,850 ▲404.99 ▼0.04147.40 ▼20.15147.91 ▲23.63
Send Link Lite /wp-admin/admin.php?page=DBWD_Send_Link_Lite2,2362.7774.32192.28
DBWD Software /wp-admin/admin.php?page=dbwd-software1,0422.3456.9157.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method DBWD_Send_Link_Lite::deactivationMenuControl() should not be called statically
  • Zombie WordPress options were found after uninstall: 2 options
    • DBWD_Menu_Control
    • DBWD_Send_Link_Lite

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=DBWD_Send_Link_Lite
    • > Deprecated in wp-content/plugins/dbwd-send-link/DBWD Send Link.php+595
    Non-static method DBWD_Send_Link_Lite::setDefaultData() should not be called statically
    • > GET request to /wp-admin/admin.php?page=DBWD_Send_Link_Lite
    • > Warning in wp-content/plugins/dbwd-send-link/DBWD Send Link.php+598
    include_once(Mail.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=DBWD_Send_Link_Lite
    • > Warning in wp-content/plugins/dbwd-send-link/DBWD Send Link.php+598
    include_once(): Failed opening 'Mail.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=DBWD_Send_Link_Lite
    • > Deprecated in wp-content/plugins/dbwd-send-link/DBWD Send Link.php+608
    Non-static method DBWD_Send_Link_Lite::data_save() should not be called statically
    • > GET request to /wp-admin/admin.php?page=dbwd-software
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method DBWD_Send_Link_Lite::DBWD_custom_menu_page() should not be called statically

SRP 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/dbwd-send-link/processSL.php
    • > /wp-content/plugins/dbwd-send-link/DBWD_FormPage.php
  • 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined index: displayTextColor_SL in wp-content/plugins/dbwd-send-link/processSL.php on line 32
    • > PHP Notice
      Undefined index: siteLoginPassword in wp-content/plugins/dbwd-send-link/DBWD_FormPage.php on line 13
    • > PHP Notice
      Undefined index: tellTo in wp-content/plugins/dbwd-send-link/processSL.php on line 26
    • > PHP Notice
      Undefined index: emailTest in wp-content/plugins/dbwd-send-link/processSL.php on line 31
    • > PHP Notice
      Undefined index: tellCaptcha in wp-content/plugins/dbwd-send-link/processSL.php on line 40
    • > PHP Notice
      Undefined index: siteName in wp-content/plugins/dbwd-send-link/processSL.php on line 29
    • > PHP Notice
      Undefined index: siteLoginName in wp-content/plugins/dbwd-send-link/DBWD_FormPage.php on line 12
    • > PHP Notice
      Undefined index: siteLoginName in wp-content/plugins/dbwd-send-link/processSL.php on line 35
    • > PHP Notice
      Undefined index: sendersEmail in wp-content/plugins/dbwd-send-link/processSL.php on line 37
    • > PHP Notice
      Undefined index: displayColor_SL in wp-content/plugins/dbwd-send-link/DBWD_FormPage.php on line 7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=DBWD_Send_Link_Lite
    • > Network (severe)
    http://sites.tghosting.net/contribute2.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/admin.php?page=DBWD_Send_Link_Lite
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=DBWD_Send_Link_Lite 555:6 Uncaught TypeError: Cannot read properties of null (reading 'style')

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5 in dbwd-send-link/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

dbwd-send-link/DBWD Send Link.php 85% from 13 tests

"DBWD Send Link to Page" version 4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 239 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dbwd-send-link.php" instead of "DBWD Send Link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,909 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP3246221,252
JavaScript8159121976
CSS28024672
HTML1309

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity83.00
▷ Minimum class complexity83.00
▷ Maximum class complexity83.00
Average method complexity6.47
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods746.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.69MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png7.32KB4.80KB▼ 34.37%
screenshot-1.png85.25KB28.35KB▼ 66.75%
js/jscolor/hv.png2.80KB7.32KB0.00%
js/jscolor/hs.png2.62KB7.54KB0.00%
gifs/favicon.png0.40KB0.41KB0.00%