10% read-it-later-lite

Code Review | Read It Later Lite

WordPress plugin Read It Later Lite scored 10% from 54 tests.

About plugin

  • Plugin page: read-it-later-lite
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 17, 2014
  • Latest release: Oct 19, 2014
  • Number of updates: 12
  • Update frequency: every 0.3 days
  • Top authors: gema75 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,318 total downloads

Benchmarks

Plugin footprint 58% 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
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/read-it-later-lite/readitlater.php+120
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.04ms] Passed 4 tests

Analyzing server-side resources used by Read It Later Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1044.00 ▼4.00
Dashboard /wp-admin3.40 ▲0.0946.80 ▼0.75
Posts /wp-admin/edit.php3.51 ▲0.1563.08 ▲15.07
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.47 ▼6.66
Media Library /wp-admin/upload.php3.32 ▲0.0934.88 ▼0.74

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
gema75_readitlater_saved_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Read It Later Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲21713.93 ▼0.829.71 ▲7.4341.95 ▼5.13
Dashboard /wp-admin2,219 ▲315.76 ▼0.11104.93 ▼0.5841.64 ▲0.74
Posts /wp-admin/edit.php2,108 ▲162.01 ▼0.0139.78 ▼1.0339.34 ▼0.68
Add New Post /wp-admin/post-new.php1,546 ▲2622.88 ▼0.13666.42 ▲27.5653.14 ▼8.37
Media Library /wp-admin/upload.php1,401 ▲134.17 ▼0.0598.58 ▼10.2241.72 ▼1.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • gema75_readitlater_saved_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Gema75_input_boxes' not found in wp-content/plugins/read-it-later-lite/admin_options.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Gema75_Read_It_Later_Frontend_User' not found in wp-content/plugins/read-it-later-lite/readitlater.frontend.class.php:437
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/read-it-later-lite/readitlater.php:46

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === read-it-later-lite === )
You can take inspiration from this readme.txt

read-it-later-lite/readitlater.php 92% from 13 tests

Analyzing the main PHP file in "Read It Later Lite" version 1.2
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("read-it-later-lite.php" instead of "readitlater.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin641 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP538387491
CSS123886
JavaScript145764

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity29.67
▷ Minimum class complexity18.00
▷ Maximum class complexity52.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/transparent.png1.02KB0.65KB▼ 35.92%