89% page-links-to

Code Review | Page Links To

WordPress plugin Page Links To scored89%from 54 tests.

About plugin

  • Plugin page: page-links-to
  • Plugin version: 3.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8
  • WordPress version: 6.3.1
  • First release: Jul 23, 2005
  • Latest release: Dec 17, 2021
  • Number of updates: 196
  • Update frequency: every 30.6 days
  • Top authors: markjaquith (100%)matt (1.02%)

Code review

54 tests

User reviews

145 reviews

Install metrics

200,000+ active /4,367,120 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.75ms] Passed 4 tests

This is a short check of server-side resources used by Page Links To
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.13 ▲1.08
Dashboard /wp-admin3.38 ▲0.0344.40 ▼17.90
Posts /wp-admin/edit.php3.43 ▲0.0843.91 ▼4.86
Add New Post /wp-admin/post-new.php5.99 ▲0.1080.91 ▼18.69
Media Library /wp-admin/upload.php3.30 ▲0.0736.26 ▼1.55
Add Page Link /wp-admin/edit.php?post_type=page&page=plt-add-page-link3.2729.19

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options
txfx_plt_schema_version
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Page Links To
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.74 ▼0.465.86 ▲4.1744.86 ▲5.02
Dashboard /wp-admin2,312 ▲1385.17 ▼0.3692.29 ▲5.0637.52 ▼7.51
Posts /wp-admin/edit.php2,222 ▲1222.39 ▲0.3853.45 ▲14.3635.16 ▼0.84
Add New Post /wp-admin/post-new.php1,637 ▲11124.02 ▲1.10702.47 ▲0.1736.33 ▼23.40
Media Library /wp-admin/upload.php1,520 ▲1204.79 ▲0.57105.03 ▼8.9940.93 ▼7.83
Add Page Link /wp-admin/edit.php?post_type=page&page=plt-add-page-link8992.4136.6021.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • txfx_plt_schema_version
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Page Links To meta box in action), #2 (The quick Add Page Link dialog.)
Please take inspiration from this readme.txt

page-links-to/page-links-to.php 92% from 13 tests

The main file in "Page Links To" v. 3.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,108 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP8156454633
PO File14155117469
JavaScript5065
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity90.00
▷ Minimum class complexity90.00
▷ Maximum class complexity90.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods63
▷ Static methods2742.86%
▷ Public methods6298.41%
▷ Protected methods00.00%
▷ Private methods11.59%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png27.44KB16.23KB▼ 40.84%
screenshot-1.png16.47KB17.10KB0.00%