89% lh-page-links-to

Code Review | LH Page Links To

WordPress plugin LH Page Links To scored89%from 54 tests.

About plugin

  • Plugin page: lh-page-links-to
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 6, 2019
  • Latest release: Jul 31, 2022
  • Number of updates: 5
  • Update frequency: every 193.6 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /2,082 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.03MB] [CPU: ▼5.24ms] Passed 4 tests

This is a short check of server-side resources used by LH Page Links To
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.89 ▼4.27
Dashboard /wp-admin3.34 ▲0.0345.39 ▼3.31
Posts /wp-admin/edit.php3.39 ▲0.0349.09 ▼1.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.14 ▼10.79
Media Library /wp-admin/upload.php3.26 ▲0.0333.69 ▼2.60

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for LH Page Links To
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.73 ▼0.081.72 ▼0.2243.47 ▲2.03
Dashboard /wp-admin2,206 ▲155.83 ▲0.9598.37 ▼0.2038.83 ▼3.84
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0540.47 ▼7.7435.91 ▲0.25
Add New Post /wp-admin/post-new.php6,306 ▲4,77219.12 ▼4.08909.11 ▲235.9159.38 ▼1.29
Media Library /wp-admin/upload.php1,382 ▼94.16 ▼0.0596.83 ▼9.8542.95 ▼1.63

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 did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (The Page Links To meta box in action), #2 (The quick Add Page Link dialog.)
You can take inspiration from this readme.txt

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

This is the main PHP file of "LH Page Links To" version 1.01, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin121 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP213950121

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods1062.50%
▷ Public methods16100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin