83% linchpin-next-page-link-previous-page-link

Code Review | Linchpin - PrevNextPage

WordPress plugin Linchpin - PrevNextPage scored83%from 54 tests.

About plugin

  • Plugin page: linchpin-next-pag...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: May 24, 2011
  • Latest release: Sep 6, 2012
  • Number of updates: 11
  • Update frequency: every 42.8 days
  • Top authors: aware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,021 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.02MB] [CPU: ▼6.35ms] Passed 4 tests

An overview of server-side resources used by Linchpin - PrevNextPage
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.01 ▼1.22
Dashboard /wp-admin3.33 ▲0.0242.20 ▼4.80
Posts /wp-admin/edit.php3.38 ▲0.0246.77 ▲0.27
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.70 ▼19.63
Media Library /wp-admin/upload.php3.25 ▲0.0233.65 ▲0.60

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Linchpin - PrevNextPage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼1.141.84 ▲0.2141.44 ▲1.04
Dashboard /wp-admin2,200 ▲95.84 ▲0.94101.86 ▼2.3539.87 ▼4.67
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0535.51 ▼7.8331.22 ▼4.01
Add New Post /wp-admin/post-new.php1,528 ▲918.50 ▼4.73641.84 ▲3.3157.79 ▼3.76
Media Library /wp-admin/upload.php1,391 ▲64.27 ▲0.1197.70 ▼5.5843.95 ▼0.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linchpin-next-page-link-previous-page-link/linchpin-nextprevpage.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

linchpin-next-page-link-previous-page-link/linchpin-nextprevpage.php 85% from 13 tests

"Linchpin - PrevNextPage" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 814 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("linchpin-next-page-link-previous-page-link.php" instead of "linchpin-nextprevpage.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin105 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15472105

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin