83% advanced-wplink

Code Review | Advanced WPLink

WordPress plugin Advanced WPLink scored 83% from 54 tests.

About plugin

  • Plugin page: advanced-wplink
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 5.9.2
  • First release: May 25, 2016
  • Latest release: Jun 22, 2018
  • Number of updates: 32
  • Update frequency: every 23.7 days
  • Top authors: nico_martin (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

1,000+ active / 6,620 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼297.95ms] Passed 4 tests

This is a short check of server-side resources used by Advanced WPLink
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1557.28 ▼23.70
Dashboard /wp-admin3.51 ▲0.1036.39 ▼2.22
Posts /wp-admin/edit.php3.73 ▲0.0937.90 ▼0.61
Add New Post /wp-admin/post-new.php7.05 ▲0.0894.31 ▼1,165.28
Media Library /wp-admin/upload.php3.38 ▲0.0927.68 ▲4.23
Advanced WPLink /wp-admin/options-general.php?page=advanced-wplink-settings3.3623.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 2 new options
New WordPress options
nm-awl_version
nm-awl_options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced WPLink
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,868 ▲12616.46 ▲1.305.84 ▼3.623.01 ▲0.95
Dashboard /wp-admin2,966 ▲1056.97 ▲0.83152.55 ▲11.09185.23 ▲21.96
Posts /wp-admin/edit.php2,698 ▲133.22 ▼0.0162.29 ▼2.49147.05 ▼4.48
Add New Post /wp-admin/post-new.php1,772 ▲13421.77 ▼0.09453.87 ▲30.03166.72 ▲2.35
Media Library /wp-admin/upload.php1,708 ▲105.54 ▲0.02166.02 ▲2.77190.67 ▼16.27
Advanced WPLink /wp-admin/options-general.php?page=advanced-wplink-settings1,1842.6355.30142.13

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
  • Zombie WordPress options were found after uninstall: 2 options
    • nm-awl_options
    • nm-awl_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NM\\AdvancedWPLink\\add_action() in wp-content/plugins/advanced-wplink/class/AdminPage.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NM\\AdvancedWPLink\\add_action() in wp-content/plugins/advanced-wplink/class/Editor.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NM\\AdvancedWPLink\\register_activation_hook() in wp-content/plugins/advanced-wplink/class/Activate.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-wplink/advanced-wplink.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

advanced-wplink/advanced-wplink.php 85% from 13 tests

"Advanced WPLink" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,331 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript615958674
PHP45416275
PO File38790249
Sass2101120
Ruby13011
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.67
▷ Minimum class complexity4.00
▷ Maximum class complexity14.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin