10% dfd-reddcoin-tips

Code Review | DFD Reddcoin Tips

WordPress plugin DFD Reddcoin Tips scored10%from 54 tests.

About plugin

  • Plugin page: dfd-reddcoin-tips
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4.2
  • WordPress version: 6.3.1
  • First release: Dec 5, 2014
  • Latest release: Feb 19, 2017
  • Number of updates: 21
  • Update frequency: every 38.3 days
  • Top authors: taoteh1221 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,460 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
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/dfd-reddcoin-tips/dfd-reddcoin-tips.php+19
    Undefined variable: _SESSION

Server metrics [RAM: ▼1.97MB] [CPU: ▼55.36ms] Passed 4 tests

Server-side resources used by DFD Reddcoin Tips
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.30 ▼33.78
Dashboard /wp-admin2.05 ▼1.305.80 ▼56.28
Posts /wp-admin/edit.php2.05 ▼1.315.17 ▼39.23
Add New Post /wp-admin/post-new.php2.05 ▼3.845.35 ▼92.15
Media Library /wp-admin/upload.php2.05 ▼1.185.35 ▼28.98
DFD Reddcoin Tips Settings /wp-admin/options-general.php?page=dfd-reddcoin-tips-settings2.056.27

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 448 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_dfdrddtipwidget2
widget_dfdrddtipwidget1
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for DFD Reddcoin Tips
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.28 ▼0.082.01 ▲0.4143.81 ▼0.08
Dashboard /wp-admin2,214 ▲345.54 ▼0.0883.08 ▼15.6284.40 ▲41.41
Posts /wp-admin/edit.php2,119 ▲191.99 ▼0.0134.06 ▼2.0034.37 ▼5.09
Add New Post /wp-admin/post-new.php6,365 ▲4,83924.13 ▲1.03994.56 ▲332.4361.92 ▲9.12
Media Library /wp-admin/upload.php1,422 ▲224.17 ▼0.1393.87 ▼19.7873.93 ▲24.52
DFD Reddcoin Tips Settings /wp-admin/options-general.php?page=dfd-reddcoin-tips-settings9562.0022.2154.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/dfd-reddcoin-tips/dfd-reddcoin-tips.php+19
    Undefined variable: _SESSION
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_dfdrddtipwidget1
    • widget_recent-comments
    • widget_dfdrddtipwidget2

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=dfd-reddcoin-tips-settings
    • > Notice in wp-content/plugins/dfd-reddcoin-tips/dfd-reddcoin-tips.php+19
    Undefined variable: _SESSION
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=dfd-reddcoin-tips-settings
    • > Notice in wp-content/plugins/dfd-reddcoin-tips/includes/pages/settings/settings.php+149
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=dfd-reddcoin-tips-settings
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in dfd_rdd_tip_widget_1 is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=dfd-reddcoin-tips-settings
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in dfd_rdd_tip_widget_2 is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=dfd-reddcoin-tips-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=dfd-reddcoin-tips-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dfd-reddcoin-tips/includes/addons/phpqrcode/index.php
    • > /wp-content/plugins/dfd-reddcoin-tips/includes/pages/console/reddapi_connect.php
    • > /wp-content/plugins/dfd-reddcoin-tips/includes/pages/console/console_submissions.php
    • > /wp-content/plugins/dfd-reddcoin-tips/includes/ajax/requests.php
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/dfd-reddcoin-tips/includes/pages/settings/settings.php:45
    • > PHP Notice
      Undefined index: send_to_external_address in wp-content/plugins/dfd-reddcoin-tips/includes/pages/console/console_submissions.php on line 75
    • > PHP Warning
      Use of undefined constant rdd_coin_address - assumed 'rdd_coin_address' (this will throw an Error in a future version of PHP) in wp-content/plugins/dfd-reddcoin-tips/assets/images/rdd-tip-address.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/dfd-reddcoin-tips/includes/pages/console/console.php:96
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dfd-reddcoin-tips/includes/widgets/tip-widgets/tip_widget_2.php:3
    • > PHP Notice
      Undefined index: rdd_coin_address in wp-content/plugins/dfd-reddcoin-tips/assets/images/rdd-tip-address.php on line 4
    • > PHP Notice
      Undefined index: get_username_data in wp-content/plugins/dfd-reddcoin-tips/includes/pages/console/console_submissions.php on line 64
    • > PHP Notice
      Undefined index: send_internal_from_username in wp-content/plugins/dfd-reddcoin-tips/includes/pages/console/console_submissions.php on line 89
    • > PHP Notice
      Undefined index: send_internal_to_username in wp-content/plugins/dfd-reddcoin-tips/includes/pages/console/console_submissions.php on line 88
    • > PHP Notice
      Undefined variable: _SESSION in wp-content/plugins/dfd-reddcoin-tips/includes/pages/console/reddapi_connect.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
The official readme.txt might help

dfd-reddcoin-tips/dfd-reddcoin-tips.php 92% from 13 tests

The main file in "DFD Reddcoin Tips" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 349 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
  • For security reasons, never distribute binary or executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/dfd-reddcoin-tips/includes/addons/phpqrcode/tools/merge.bat
7,588 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP302,1082,2477,549
JavaScript1251235
Bourne Shell1002
DOS Batch1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity30.97
▷ Minimum class complexity1.00
▷ Maximum class complexity292.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes36
▷ Abstract classes00.00%
▷ Concrete classes36100.00%
▷ Final classes00.00%
Methods391
▷ Static methods12231.20%
▷ Public methods28973.91%
▷ Protected methods9624.55%
▷ Private methods61.53%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants97
▷ Global constants97100.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
43 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/addons/phpqrcode/cache/frame_37.png0.27KB0.25KB▼ 7.89%
includes/addons/phpqrcode/cache/frame_15.png0.21KB0.20KB▼ 4.57%
includes/addons/phpqrcode/cache/frame_10.png0.20KB0.20KB▼ 0.99%
includes/addons/phpqrcode/cache/frame_22.png0.22KB0.21KB▼ 6.19%
includes/addons/phpqrcode/cache/frame_12.png0.21KB0.20KB▼ 4.63%