10% read-more-login

Code Review | Read More Login

WordPress plugin Read More Login scored10%from 54 tests.

About plugin

  • Plugin page: read-more-login
  • Plugin version: 2.0.3
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Oct 27, 2017
  • Latest release: Jul 31, 2021
  • Number of updates: 33
  • Update frequency: every 41.6 days
  • Top authors: arildur (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /5,937 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/read-more-login/src/ReadMoreLoginPlugin.php+119
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.61MB] [CPU: ▲0.88ms] Passed 4 tests

A check of server-side resources used by Read More Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4647.99 ▲7.93
Dashboard /wp-admin3.98 ▲0.6762.29 ▲6.07
Posts /wp-admin/edit.php4.00 ▲0.6457.99 ▲4.49
Add New Post /wp-admin/post-new.php6.56 ▲0.6794.76 ▼14.95
Media Library /wp-admin/upload.php3.90 ▲0.6745.09 ▲8.56
Statistics /wp-admin/admin.php?page=rml-admin-statistics4.0040.49
Help /wp-admin/admin.php?page=rml-admin-help4.4242.61
Settings /wp-admin/admin.php?page=rml-admin-menu5.6655.16
Status /wp-admin/admin.php?page=rml-admin-registration-status4.0038.07

Server storage [IO: ▲0.92MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 166 new files
Database: 2 new tables, 16 new options
New tables
wp_ari_read-more-login_statistics
wp_ari_read-more-login_registration
New WordPress options
widget_recent-posts
ari_read-more-login_linking_option
ari_read-more-login_version
ari_read-more-login_advanced_options
theysaidso_admin_options
ari_read-more-login_access_option
ari_read-more-login_wizard_options
ari_read-more-login_form_options
widget_theysaidso_widget
ari_read-more-login_email_options
...

Browser metrics Passed 4 tests

Checking browser requirements for Read More Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14914.35 ▲0.021.90 ▲0.0745.43 ▲1.91
Dashboard /wp-admin2,304 ▲1405.64 ▲0.0384.63 ▼17.3241.74 ▼5.65
Posts /wp-admin/edit.php2,207 ▲1042.01 ▲0.0439.73 ▲1.9233.83 ▼2.17
Add New Post /wp-admin/post-new.php1,554 ▲2623.43 ▲0.05743.53 ▲76.6358.88 ▲4.43
Media Library /wp-admin/upload.php1,509 ▲1124.17 ▼0.0198.78 ▼6.8945.49 ▼0.96
Statistics /wp-admin/admin.php?page=rml-admin-statistics9002.0024.5929.58
Help /wp-admin/admin.php?page=rml-admin-help1,0242.1926.1828.55
Settings /wp-admin/admin.php?page=rml-admin-menu1,3652.0926.4942.59
Status /wp-admin/admin.php?page=rml-admin-registration-status9172.0325.0028.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_PluginFramework\\Views\\StdView' not found in wp-content/plugins/read-more-login/vendor/centralplugin/wp-plugin-framework/src/WP_PluginFramework/Views/AdminStdView.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_PluginFramework\\HtmlComponents\\HtmlBaseComponent' not found in wp-content/plugins/read-more-login/vendor/centralplugin/wp-plugin-framework/src/WP_PluginFramework/HtmlComponents/InputComponent.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'WP_PluginFramework\\Views\\AdminPanelStdView' not found in wp-content/plugins/read-more-login/views/AdminPanelView.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'WP_PluginFramework\\HtmlComponents\\HtmlBaseComponent' not found in wp-content/plugins/read-more-login/vendor/centralplugin/wp-plugin-framework/src/WP_PluginFramework/HtmlComponents/Text.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
5 plugin tags: access, shortcode, register, login, read more

read-more-login/read-more-login.php 92% from 13 tests

"Read More Login" version 2.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin15,328 lines of code in 158 files:
LanguageFilesBlank linesComment linesLines of code
PHP1492,8903,64913,798
PO File1305448972
JavaScript2320244
CSS4360215
JSON10098
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.03
▷ Minimum class complexity1.00
▷ Maximum class complexity133.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces13
Interfaces0
Traits0
Classes144
▷ Abstract classes74.86%
▷ Concrete classes13795.14%
▷ Final classes00.00%
Methods690
▷ Static methods10214.78%
▷ Public methods56782.17%
▷ Protected methods10314.93%
▷ Private methods202.90%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants278
▷ Global constants10.36%
▷ Class constants27799.64%
▷ Public constants277100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/shortcode_example.png19.78KB9.18KB▼ 53.59%
img/icon-128x128.png3.10KB1.98KB▼ 35.94%