84% read-more-link

Code Review | Read More Link

WordPress plugin Read More Link scored84%from 54 tests.

About plugin

  • Plugin page: read-more-link
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2012
  • Latest release: Apr 21, 2012
  • Number of updates: 13
  • Update frequency: every 2.3 days
  • Top authors: lucadioli (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /9,214 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Read More Link
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.93 ▼0.18
Dashboard /wp-admin3.31 ▲0.0144.78 ▼1.72
Posts /wp-admin/edit.php3.36 ▲0.0152.08 ▲4.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.92 ▼15.13
Media Library /wp-admin/upload.php3.24 ▲0.0134.54 ▲0.39
Read more link /wp-admin/options-general.php?page=read-more-link/functions.php3.2031.82

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Read More Link
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.201.70 ▼0.1340.59 ▼5.44
Dashboard /wp-admin2,210 ▲255.80 ▲0.87106.07 ▼1.4636.70 ▼2.60
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0333.28 ▼2.6532.67 ▼5.14
Add New Post /wp-admin/post-new.php1,536 ▲323.06 ▼0.10647.08 ▼11.7153.13 ▲1.66
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.02101.95 ▲4.1143.42 ▼2.39
Read more link /wp-admin/options-general.php?page=read-more-link/functions.php8551.8424.8626.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/read-more-link/functions.php:225

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Here's a screenshot of the settings page) image required
The official readme.txt might help

read-more-link/functions.php 92% from 13 tests

This is the main PHP file of "Read More Link" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("read-more-link.php" instead of "functions.php")

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
No dangerous file extensions were detected194 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11518194

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png32.05KB15.23KB▼ 52.47%