84% wp-link-pages-extended

Code Review | WP Link Pages Extended

WordPress plugin WP Link Pages Extended scored84%from 54 tests.

About plugin

  • Plugin page: wp-link-pages-ext...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Sep 28, 2015
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: HoosierDragon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,208 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by WP Link Pages Extended
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.87 ▼1.96
Dashboard /wp-admin3.34 ▼0.0146.61 ▼17.99
Posts /wp-admin/edit.php3.39 ▲0.0347.40 ▼0.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.92 ▼19.01
Media Library /wp-admin/upload.php3.26 ▲0.0334.69 ▲1.47

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Link Pages Extended
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.061.55 ▼0.1441.11 ▲1.12
Dashboard /wp-admin2,209 ▲244.87 ▼1.00107.14 ▲0.5041.07 ▼1.96
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0639.28 ▲2.6536.39 ▲2.09
Add New Post /wp-admin/post-new.php1,542 ▲2018.69 ▼4.51601.73 ▼71.2052.40 ▼5.14
Media Library /wp-admin/upload.php1,379 ▼124.21 ▲0.0399.48 ▲2.6441.89 ▼0.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-link-pages-extended/wp-link-pages-extended.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Pagination links when viewing page or post as a single page) image not found
The official readme.txt might help

wp-link-pages-extended/wp-link-pages-extended.php Passed 13 tests

The main PHP script in "WP Link Pages Extended" version 1.0 is automatically included on every request by WordPress
98 characters long description:
Extended the Post and Page 'nextpage' pagination navigation system with something more informative

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin173 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13186130
PO File18843

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-02.png5.29KB2.72KB▼ 48.61%
screenshot-01.png6.48KB3.17KB▼ 51.19%