10% readability-favorites

Code Review | Readability Favorites

WordPress plugin Readability Favorites scored10%from 54 tests.

About plugin

  • Plugin page: readability-favor...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2012
  • Latest release: Sep 26, 2013
  • Number of updates: 28
  • Update frequency: every 22.2 days
  • Top authors: kanedo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,423 total downloads

Benchmarks

Plugin footprint 58% 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
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/readability-favorites/OAuth.php+101
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.35ms] Passed 4 tests

An overview of server-side resources used by Readability Favorites
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.38 ▼3.64
Dashboard /wp-admin3.33 ▲0.0348.00 ▼10.99
Posts /wp-admin/edit.php3.38 ▲0.0251.51 ▲1.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.24 ▲3.96
Media Library /wp-admin/upload.php3.25 ▲0.0238.91 ▲3.31
Readability Plugin /wp-admin/options-general.php?page=k_readability3.2028.80

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
readability_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Readability Favorites: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.37 ▲1.231.98 ▼2.9544.25 ▼0.98
Dashboard /wp-admin2,210 ▲335.64 ▼0.0491.51 ▼0.1941.60 ▼3.40
Posts /wp-admin/edit.php2,131 ▲522.25 ▲0.1939.53 ▲1.5537.59 ▲2.88
Add New Post /wp-admin/post-new.php1,563 ▲1818.32 ▼4.76604.70 ▼44.7771.35 ▲23.57
Media Library /wp-admin/upload.php1,420 ▲234.24 ▲0.05107.91 ▲4.8944.69 ▲1.08
Readability Plugin /wp-admin/options-general.php?page=k_readability9682.0531.2438.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=k_readability
    • > Notice in wp-content/plugins/readability-favorites/readability-options.php+42
    Undefined index: k_tab

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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/readability-favorites/readability_favorites_action.php
    • > /wp-content/plugins/readability-favorites/readability_favorites.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/readability-favorites/readability-favorites.php:14
    • > PHP Warning
      include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/readability-favorites/readability-settings.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/readability-favorites/readability-settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/readability-favorites/readability-options.php:4
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/readability-favorites/readability-settings.php on line 3
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/readability-favorites/readability-settings.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: daily, linkpost, weekly, favorites, links...

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

"Readability Favorites" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
Publish a post of your readability favorites

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,247 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP72212871,162
PO File1364185

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.18
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes00.00%
Methods59
▷ Static methods1016.95%
▷ Public methods4881.36%
▷ Protected methods23.39%
▷ Private methods915.25%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin