10% rua-blog-subscriber-lite

Code Review | RUA Blog Subscriber Lite

WordPress plugin RUA Blog Subscriber Lite scored10%from 54 tests.

About plugin

  • Plugin page: rua-blog-subscrib...
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.2
  • WordPress version: 6.3.1
  • First release: Apr 28, 2016
  • Latest release: Jan 23, 2018
  • Number of updates: 18
  • Update frequency: every 36.5 days
  • Top authors: dxladner (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

70+ active /4,208 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/rua-blog-subscriber-lite/rua-blog-subscriber-lite.php+664
    Function create_function() is deprecated

Server metrics [RAM: ▼1.73MB] [CPU: ▼58.69ms] Passed 4 tests

A check of server-side resources used by RUA Blog Subscriber Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.31 ▼1.197.99 ▼38.10
Dashboard /wp-admin2.33 ▼1.068.28 ▼60.41
Posts /wp-admin/edit.php2.33 ▼1.077.96 ▼42.08
Add New Post /wp-admin/post-new.php2.33 ▼3.607.51 ▼94.15
Media Library /wp-admin/upload.php2.33 ▼0.948.93 ▼28.79
Email Subscribers Settings /wp-admin/options-general.php?page=rua-subscribers-settings2.338.11

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 39 new files
Database: 1 new table, 22 new options
New tables
wp_rua_blog_subscriber
New WordPress options
widget_theysaidso_widget
rua_company_state
rua_from_email_address
rua_company_phone_number
rua_blog_subscriber_db_version
widget_recent-comments
rua_custom_message
rua_site_url
rua_email_subject
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Checking browser requirements for RUA Blog Subscriber Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18513.87 ▼0.5410.62 ▲8.9241.53 ▼10.07
Dashboard /wp-admin2,211 ▲345.61 ▼0.03103.06 ▲7.6145.13 ▲2.54
Posts /wp-admin/edit.php2,116 ▲192.03 ▲0.0434.96 ▼2.6535.21 ▼0.25
Add New Post /wp-admin/post-new.php1,539 ▲1323.78 ▲0.72670.98 ▼53.5257.54 ▲7.58
Media Library /wp-admin/upload.php1,416 ▲164.20 ▼0.04112.52 ▲8.2049.31 ▼0.30
Email Subscribers Settings /wp-admin/options-general.php?page=rua-subscribers-settings1,3802.1634.0676.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/rua-blog-subscriber-lite/rua-blog-subscriber-lite.php+664
    Function create_function() is deprecated
  • Zombie tables detected upon uninstall: 1 table
    • wp_rua_blog_subscriber
  • This plugin did not uninstall successfully, leaving 22 options in the database
    • rua_blog_subscriber_db_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • rua_company_state
    • rua_from_email_address
    • rua_company_zip
    • rua_form_header
    • rua_company_city
    • rua_custom_message
    • rua_email_logo
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=rua-subscribers-settings
    • > Deprecated in wp-content/plugins/rua-blog-subscriber-lite/rua-blog-subscriber-lite.php+664
    Function create_function() is deprecated
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rua-subscribers-settings
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=rua-subscribers-settings
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% from 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
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rua-blog-subscriber-lite/includes/register-settings.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rua-blog-subscriber-lite/templates/unsubscribe.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rua-blog-subscriber-lite/templates/subscribe.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rua-blog-subscriber-lite/includes/install.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/rua-blog-subscriber-lite/uninstall.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

rua-blog-subscriber-lite/rua-blog-subscriber-lite.php Passed 13 tests

The main file in "RUA Blog Subscriber Lite" v. 1.5.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
WordPress plugin that displays a subscribe to blog form using a shortcode. You can place the shortcode in a page or

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,131 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP81381581,241
SVG200943
CSS55928538
JavaScript62840409

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.00
▷ Minimum class complexity5.00
▷ Maximum class complexity7.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/images/email.png10.34KB4.23KB▼ 59.10%
templates/images/success.png1.96KB0.99KB▼ 49.35%
images/email.png10.34KB4.23KB▼ 59.10%
images/sort_asc.png0.16KB0.25KB0.00%
images/sort_both.png0.20KB0.29KB0.00%