84% login-to-read-more

Code Review | Login to read more

WordPress plugin Login to read more scored84%from 54 tests.

About plugin

  • Plugin page: login-to-read-more
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Jun 26, 2013
  • Latest release: Jun 27, 2013
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: miyauchi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.45ms] Passed 4 tests

A check of server-side resources used by Login to read more
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.54 ▼6.04
Dashboard /wp-admin3.31 ▲0.0157.89 ▲4.94
Posts /wp-admin/edit.php3.36 ▲0.0144.95 ▲0.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.27 ▼8.88
Media Library /wp-admin/upload.php3.23 ▲0.0137.31 ▲6.05

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Login to read more
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.114.56 ▲2.8241.68 ▼0.42
Dashboard /wp-admin2,209 ▲184.84 ▼0.03103.82 ▼9.8846.12 ▲3.83
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0136.18 ▼0.9433.44 ▼1.36
Add New Post /wp-admin/post-new.php1,528 ▼518.80 ▼4.35629.39 ▼58.5560.18 ▲5.51
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0596.38 ▼2.8940.26 ▼3.92

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-to-read-more/login-to-read-more.php:17

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: page, register, login, member, post...

login-to-read-more/login-to-read-more.php Passed 13 tests

Analyzing the main PHP file in "Login to read more" version 0.2.0
68 characters long description:
Display content enclosed by the shortcode for registered users only.

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
Everything looks great! No dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17841

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin