10% readability-buttons

Code Review | Readability Buttons (readability.com)

WordPress plugin Readability Buttons (readability.com) scored10%from 54 tests.

About plugin

  • Plugin page: readability-buttons
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.7
  • WordPress version: 6.3.1
  • First release: Feb 20, 2011
  • Latest release: Dec 31, 2016
  • Number of updates: 59
  • Update frequency: every 47.6 days
  • Top authors: Sparanoid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,545 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/readability-buttons/readability-buttons.php+230
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼54.52ms] Passed 4 tests

Server-side resources used by Readability Buttons (readability.com)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.443.67 ▼37.00
Dashboard /wp-admin2.05 ▼1.265.12 ▼46.32
Posts /wp-admin/edit.php2.05 ▼1.315.83 ▼39.19
Add New Post /wp-admin/post-new.php2.05 ▼3.844.79 ▼95.58
Media Library /wp-admin/upload.php2.05 ▼1.185.69 ▼29.55

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_widget-readability-buttons-id
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Readability Buttons (readability.com)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.25 ▼1.121.79 ▼0.0138.93 ▼3.44
Dashboard /wp-admin2,224 ▲184.86 ▼0.95111.23 ▲5.1143.52 ▼2.40
Posts /wp-admin/edit.php2,103 ▲32.06 ▲0.0641.67 ▲2.2439.01 ▲3.80
Add New Post /wp-admin/post-new.php1,545 ▼023.13 ▲0.18651.59 ▼16.8259.60 ▲10.25
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.01108.71 ▲8.7646.01 ▲2.05

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
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/readability-buttons/readability-buttons.php+230
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_widget-readability-buttons-id
    • widget_recent-comments

Smoke tests 50% from 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)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/readability-buttons/views/widget.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: show_vertical in wp-content/plugins/readability-buttons/views/widget.php on line 11
    • > PHP Notice
      Undefined variable: show_email in wp-content/plugins/readability-buttons/views/widget.php on line 10
    • > PHP Notice
      Undefined variable: show_read_now in wp-content/plugins/readability-buttons/views/widget.php on line 6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/readability-buttons/views/admin.php:3
    • > PHP Notice
      Undefined variable: text_color in wp-content/plugins/readability-buttons/views/widget.php on line 13
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/readability-buttons/views/widget.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/readability-buttons/readability-buttons.php:29
    • > PHP Notice
      Undefined variable: show_send_to_kindle in wp-content/plugins/readability-buttons/views/widget.php on line 8
    • > PHP Notice
      Undefined variable: show_print in wp-content/plugins/readability-buttons/views/widget.php on line 9
    • > PHP Notice
      Undefined variable: show_read_later in wp-content/plugins/readability-buttons/views/widget.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: wpmu, widget, share, javascript, multisite...

readability-buttons/readability-buttons.php Passed 13 tests

This is the main PHP file of "Readability Buttons (readability.com)" version 2.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Adds readability.com widget for your site.

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 detected164 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP354107139
PO File10017
JavaScript2028
CSS2020

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin