84% stylish-internal-links

Code Review | Stylish Internal Links

WordPress plugin Stylish Internal Links scored84%from 54 tests.

About plugin

  • Plugin page: stylish-internal-...
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Oct 10, 2016
  • Latest release: Jun 1, 2020
  • Number of updates: 39
  • Update frequency: every 34.1 days
  • Top authors: worldfacts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,435 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.55ms] Passed 4 tests

This is a short check of server-side resources used by Stylish Internal Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.75 ▼3.05
Dashboard /wp-admin3.34 ▲0.0351.39 ▲5.73
Posts /wp-admin/edit.php3.39 ▲0.0346.41 ▼4.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.31 ▼14.40
Media Library /wp-admin/upload.php3.26 ▲0.0334.58 ▼0.57
Stylish Internal Link /wp-admin/options-general.php?page=stylnk_mskvr_topt3.2329.98

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 11 new options
New WordPress options
mlstl_link_icons
widget_theysaidso_widget
db_upgraded
mlstl_background_color
mlstl_subheading_color
can_compress_scripts
mlstl_textlink_color
theysaidso_admin_options
mlstl_border_color
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stylish Internal Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.43 ▼0.161.68 ▼0.6742.92 ▼2.34
Dashboard /wp-admin2,218 ▲415.80 ▲0.1397.75 ▲9.6242.42 ▲1.57
Posts /wp-admin/edit.php2,128 ▲282.29 ▲0.3435.59 ▼1.4032.73 ▼0.48
Add New Post /wp-admin/post-new.php1,552 ▲2623.31 ▲0.06665.59 ▲1.6736.62 ▼14.06
Media Library /wp-admin/upload.php1,423 ▲234.44 ▲0.2695.43 ▼12.3441.72 ▼7.10
Stylish Internal Link /wp-admin/options-general.php?page=stylnk_mskvr_topt1,2972.5956.8749.35

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/stylish-internal-links/options.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stylish-internal-links/stylish-internal-link.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: internal links, seo, seo links

stylish-internal-links/stylish-internal-link.php 92% from 13 tests

Analyzing the main PHP file in "Stylish Internal Links" version 1.9
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("stylish-internal-links.php" instead of "stylish-internal-link.php")

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
Success! There were no dangerous files found in this plugin176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23424138
JavaScript281138

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin