78% continue-reading-link-for-excerpts

Code Review | Continue Reading Link for Excerpts

WordPress plugin Continue Reading Link for Excerpts scored78%from 54 tests.

About plugin

  • Plugin page: continue-reading-...
  • Plugin version: 1.02
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 12, 2018
  • Latest release: Mar 12, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: fwblack (100%)Otto42 (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /864 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
Install script ran successfully

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

An overview of server-side resources used by Continue Reading Link for Excerpts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0227.99 ▼13.53
Dashboard /wp-admin3.34 ▲0.0342.39 ▼6.17
Posts /wp-admin/edit.php3.39 ▲0.0347.71 ▲1.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.71 ▼9.96
Media Library /wp-admin/upload.php3.26 ▲0.0335.42 ▲0.47
Continue Reading Link /wp-admin/options-general.php?page=pqHCExL3.2028.63

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Continue Reading Link for Excerpts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.34 ▼1.211.54 ▼0.5739.67 ▼4.98
Dashboard /wp-admin2,213 ▲225.87 ▲0.06110.26 ▲6.6245.14 ▲1.40
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0139.16 ▲3.4734.05 ▼0.54
Add New Post /wp-admin/post-new.php1,540 ▲723.06 ▼0.27622.58 ▼19.1054.80 ▼0.47
Media Library /wp-admin/upload.php1,395 ▲104.41 ▲0.2397.46 ▼4.3344.33 ▼2.57
Continue Reading Link /wp-admin/options-general.php?page=pqHCExL8322.0127.6645.18

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=pqHCExL
    • > Notice in wp-content/plugins/continue-reading-link-for-excerpts/pqHCExL.php+73
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/continue-reading-link-for-excerpts/pqHCExL.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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: studiopress, excerpts, continue, continuereading, genesiswp...

continue-reading-link-for-excerpts/pqHCExL.php 85% from 13 tests

The main PHP script in "Continue Reading Link for Excerpts" version 1.02 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 272 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("continue-reading-link-for-excerpts.php" instead of "pqHCExL.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected96 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151196

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Internet-Business-and-More-400x150.png37.21KB12.14KB▼ 67.38%