94% enhanced-linking

Code Review | Enhanced Linking

WordPress plugin Enhanced Linking scored 94% from 53 tests.

About plugin

  • Plugin page: enhanced-linking
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 5.8.1
  • First release: Apr 16, 2012
  • Latest release: Aug 18, 2016
  • Number of updates: 27
  • Update frequency: every 58.7 days
  • Top authors: zemanta (59.26%)sparkica (22.22%)andraz (18.52%)ddksr (11.11%)

Code review

53 tests

User reviews

1 review

Install metrics

200+ active / 7,074 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼267.06ms] Passed 4 tests

An overview of server-side resources used by Enhanced Linking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.45 ▲9.98
Dashboard /wp-admin3.07 ▲0.0247.51 ▲4.86
Posts /wp-admin/edit.php3.12 ▲0.0250.23 ▲9.35
Add New Post /wp-admin/post-new.php5.44 ▲0.0188.07 ▼1,075.49
Media Library /wp-admin/upload.php3.01 ▲0.0133.99 ▼6.97

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Enhanced Linking
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,745 ▲14016.16 ▲0.708.78 ▼2.4147.55 ▲3.47
Dashboard /wp-admin3,012 ▲1626.27 ▲0.45154.72 ▲23.31126.42 ▲21.00
Posts /wp-admin/edit.php2,706 ▼02.69 ▲0.0273.12 ▲8.2698.84 ▲6.16
Add New Post /wp-admin/post-new.php1,851 ▼218.88 ▼0.23368.51 ▲7.26106.28 ▲3.86
Media Library /wp-admin/upload.php1,775 ▼05.04 ▲0.03156.74 ▲12.33113.70 ▼3.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 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 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/enhanced-linking/enhanced-linking.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Search for links with Bing), #2 (Search for related posts with Zemanta)
Please take inspiration from this readme.txt

enhanced-linking/enhanced-linking.php Passed 13 tests

The main file in "Enhanced Linking" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
This plugin enhances the Insert/Edit Link dialogue with Related Posts and easy searching for links.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin497 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1749324
CSS1193126
PHP1181347

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon-link.png0.14KB0.15KB0.00%
screenshot-2.png59.18KB22.29KB▼ 62.33%
screenshot-1.png64.37KB23.00KB▼ 64.26%
bing-logo.png2.48KB1.90KB▼ 23.16%
zemanta-logo.png2.50KB2.01KB▼ 19.58%