10% read-later-buttons

Code Review | Read Later Buttons

WordPress plugin Read Later Buttons scored10%from 54 tests.

About plugin

  • Plugin page: read-later-buttons
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Apr 18, 2013
  • Latest release: Apr 18, 2014
  • Number of updates: 37
  • Update frequency: every 9.8 days
  • Top authors: csixty4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /12,808 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
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/read-later-buttons/read-later-buttons.php+369
    Function create_function() is deprecated

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

This is a short check of server-side resources used by Read Later Buttons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.48 ▼40.04
Dashboard /wp-admin2.05 ▼1.306.61 ▼56.41
Posts /wp-admin/edit.php2.05 ▼1.316.11 ▼45.41
Add New Post /wp-admin/post-new.php2.05 ▼3.845.20 ▼103.02
Media Library /wp-admin/upload.php2.05 ▼1.185.23 ▼30.65

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_read_later_buttons

Browser metrics Passed 4 tests

This is an overview of browser requirements for Read Later Buttons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.27 ▼0.082.52 ▲0.5346.87 ▲2.33
Dashboard /wp-admin2,198 ▲275.56 ▼0.1187.39 ▼17.4840.43 ▼3.17
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.1535.50 ▼8.1634.81 ▼2.58
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▲1.92672.50 ▼56.9149.11 ▼9.05
Media Library /wp-admin/upload.php1,400 ▲34.27 ▼0.1498.67 ▼4.9040.27 ▼10.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/read-later-buttons/read-later-buttons.php+369
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_read_later_buttons
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/read-later-buttons/read-later-buttons.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: read later, readlater, kindle, widget, readability...

read-later-buttons/read-later-buttons.php Passed 13 tests

The main PHP script in "Read Later Buttons" version 1.2 is automatically included on every request by WordPress
130 characters long description:
Adds "read later" buttons to a site. Can send content to Kindle (additional plugin required), Instapaper, Pocket, and Readability.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin489 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP16981220
PO File35554175
CSS110062
SVG30320
JavaScript22112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods1071.43%
▷ Public methods750.00%
▷ Protected methods00.00%
▷ Private methods750.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

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pocket.png0.28KB0.41KB0.00%
images/instapaper.png0.14KB0.17KB0.00%
images/readability.png0.29KB0.40KB0.00%