10% wp-what-links-here

Code Review | WP What Links Here

WordPress plugin WP What Links Here scored 10% from 54 tests.

About plugin

  • Plugin page: wp-what-links-here
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.2.2
  • WordPress version: 5.8.1
  • First release: Mar 6, 2014
  • Latest release: May 9, 2015
  • Number of updates: 11
  • Update frequency: every 39.0 days
  • Top authors: donutz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,028 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/wp-what-links-here/wp-what-links-here.php+452
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼1.76MB] [CPU: ▼186.90ms] Passed 4 tests

Analyzing server-side resources used by WP What Links Here
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼0.855.35 ▼18.80
Dashboard /wp-admin1.89 ▼1.169.12 ▼27.11
Posts /wp-admin/edit.php1.89 ▼1.216.21 ▼38.73
Add New Post /wp-admin/post-new.php1.89 ▼3.546.23 ▼654.45
Media Library /wp-admin/upload.php1.89 ▼1.115.95 ▼27.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 2 new options
New WordPress options
wp_wlh_db_version
wp_wlh_install

Browser metrics Passed 4 tests

WP What Links Here: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.81 ▲0.1411.12 ▲2.0552.32 ▲1.48
Dashboard /wp-admin2,973 ▲425.96 ▼0.19153.50 ▼0.53116.88 ▼6.88
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0171.80 ▼0.7497.20 ▲0.22
Add New Post /wp-admin/post-new.php1,500 ▼18318.43 ▼0.12368.33 ▼27.65115.65 ▼4.85
Media Library /wp-admin/upload.php1,810 ▲35.06 ▲0.02167.05 ▲2.53122.01 ▼2.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wp-what-links-here/wp-what-links-here.php+452
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-what-links-here/wp-what-links-here.php on line 497
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-what-links-here/wp-what-links-here.php on line 465
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-what-links-here/wp-what-links-here.php on line 452

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: connections, links, posts, wiki, relations...

wp-what-links-here/wp-what-links-here.php 92% from 13 tests

The main file in "WP What Links Here" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected343 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1165339343

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity60.00
▷ Minimum class complexity60.00
▷ Maximum class complexity60.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods311.54%
▷ Public methods2180.77%
▷ Protected methods13.85%
▷ Private methods415.38%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected