83% advanced-wplink

Code Review | Advanced WPLink

WordPress plugin Advanced WPLink scored83%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: 6.3.1
  • 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 /7,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.91ms] Passed 4 tests

An overview of server-side resources used by Advanced WPLink
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0945.75 ▲4.81
Dashboard /wp-admin3.39 ▲0.0948.65 ▲2.49
Posts /wp-admin/edit.php3.51 ▲0.1545.26 ▼0.11
Add New Post /wp-admin/post-new.php6.01 ▲0.1285.32 ▼10.98
Media Library /wp-admin/upload.php3.32 ▲0.0935.00 ▲0.98
Advanced WPLink /wp-admin/options-general.php?page=advanced-wplink-settings3.2829.79

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
nm-awl_version
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
nm-awl_options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced WPLink
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9514.74 ▲0.151.72 ▲0.0643.18 ▲3.10
Dashboard /wp-admin2,259 ▲855.80 ▲0.17103.05 ▲15.5441.39 ▼0.54
Posts /wp-admin/edit.php2,105 ▲22.03 ▼0.0033.48 ▼2.1236.20 ▲3.41
Add New Post /wp-admin/post-new.php1,578 ▲5023.37 ▲0.31627.29 ▼58.6535.12 ▼20.52
Media Library /wp-admin/upload.php1,408 ▲84.19 ▲0.0194.08 ▼10.2741.22 ▼8.38
Advanced WPLink /wp-admin/options-general.php?page=advanced-wplink-settings9421.6922.9142.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • nm-awl_version
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • nm-awl_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
Everything seems fine, however this is by no means 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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-wplink/advanced-wplink.php:38
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

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

"Advanced WPLink" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! 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

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
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
No PNG files were detected