84% wp-links-page

Code Review | WP Links Page

WordPress plugin WP Links Page scored84%from 54 tests.

About plugin

  • Plugin page: wp-links-page
  • Plugin version: 4.9.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 17, 2015
  • Latest release: Nov 17, 2023
  • Number of updates: 118
  • Update frequency: every 26.1 days
  • Top authors: Rico Macchi (100%)

Code review

54 tests

User reviews

44 reviews

Install metrics

5,000+ active /106,724 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼2.43ms] Passed 4 tests

Analyzing server-side resources used by WP Links Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2736.66 ▼4.23
Dashboard /wp-admin3.55 ▲0.2155.73 ▼5.76
Posts /wp-admin/edit.php3.67 ▲0.3152.80 ▲7.36
Add New Post /wp-admin/post-new.php6.13 ▲0.2586.05 ▼1.94
Media Library /wp-admin/upload.php3.48 ▲0.2536.93 ▲2.22
All Links /wp-admin/edit.php?post_type=wplp_link3.5338.64
Add New /wp-admin/post-new.php?post_type=wplp_link3.6047.31
Shortcode /wp-admin/edit.php?post_type=wplp_link&page=wplf_subpage3-menu3.4531.29
Help /wp-admin/edit.php?post_type=wplp_link&page=wplf_subpage2-menu3.4431.21
Settings /wp-admin/edit.php?post_type=wplp_link&page=wplf_subpage-menu3.4835.79

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Links Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7014.35 ▲0.211.67 ▼0.0744.13 ▼0.80
Dashboard /wp-admin2,237 ▲605.57 ▼0.1088.77 ▼2.9238.85 ▼7.20
Posts /wp-admin/edit.php2,136 ▲392.03 ▲0.0335.35 ▼3.3635.02 ▲1.37
Add New Post /wp-admin/post-new.php1,558 ▲2823.76 ▲0.68651.36 ▼16.4455.95 ▼0.23
Media Library /wp-admin/upload.php1,439 ▲424.18 ▲0.06100.51 ▼2.8741.69 ▼4.68
All Links /wp-admin/edit.php?post_type=wplp_link1,1312.2339.9830.17
Add New /wp-admin/post-new.php?post_type=wplp_link2,3517.70189.38139.92
Shortcode /wp-admin/edit.php?post_type=wplp_link&page=wplf_subpage3-menu1,2661.9426.0942.11
Help /wp-admin/edit.php?post_type=wplp_link&page=wplf_subpage2-menu1,1771.9923.9436.67
Settings /wp-admin/edit.php?post_type=wplp_link&page=wplf_subpage-menu1,0983.1741.9726.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • Zombie WordPress options were found after uninstall: 9 options
    • wplp_screenshot_refresh
    • wplp_screenshot_size
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • wplp_apikey
    • theysaidso_admin_options
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/wp-links-page/wp-links-page-free.php:18
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-links-page/wp-links-page-free.php on line 13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-links-page/wp-links-page-free.php on line 13
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-links-page/wp-links-page-free.php on line 13

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

wp-links-page/wp-links-page-free.php 92% from 13 tests

Analyzing the main PHP file in "WP Links Page" version 4.9.5
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-links-page.php" instead of "wp-links-page-free.php")

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
Success! There were no dangerous files found in this plugin4,697 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS490562,615
PHP1285951,251
JavaScript410821469
SVG100362

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions42
▷ Named functions4095.24%
▷ Anonymous functions24.76%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin