10% advanc-link-directory

Code Review | Advanced Link Directory

WordPress plugin Advanced Link Directory scored10%from 54 tests.

About plugin

  • Plugin page: advanc-link-direc...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Oct 16, 2022
  • Number of updates: 89
  • Update frequency: every 29.3 days
  • Top authors: Malysch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,747 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5643
    File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.56ms] Passed 4 tests

Analyzing server-side resources used by Advanced Link Directory
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.93 ▲3.06
Dashboard /wp-admin3.34 ▲0.0443.80 ▼2.49
Posts /wp-admin/edit.php3.39 ▲0.0447.39 ▲1.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.16 ▼16.10
Media Library /wp-admin/upload.php3.27 ▲0.0435.47 ▲3.31
Link Directory /wp-admin/admin.php?page=edit-reviews3.2432.21
About Plugin /wp-admin/admin.php?page=plugin_info3.2331.57
Add Link /wp-admin/admin.php?page=add_link3.2328.14

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables
wp_adv_reviews
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Advanced Link Directory: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11014.47 ▲0.092.19 ▲0.6744.85 ▲5.81
Dashboard /wp-admin2,235 ▲435.76 ▲0.8593.78 ▼17.6238.52 ▼0.36
Posts /wp-admin/edit.php2,118 ▲292.00 ▼0.0535.74 ▼0.6832.16 ▼1.80
Add New Post /wp-admin/post-new.php1,557 ▲4323.02 ▲5.43684.76 ▲35.6353.89 ▲1.99
Media Library /wp-admin/upload.php1,414 ▲234.22 ▼0.08100.74 ▼7.9342.63 ▼2.20
Link Directory /wp-admin/admin.php?page=edit-reviews8212.0624.0127.31
About Plugin /wp-admin/admin.php?page=plugin_info8042.0323.8925.22
Add Link /wp-admin/admin.php?page=add_link8872.0624.8624.46

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/advanc-link-directory/advlinkdirectory.php
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/plugin_info.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/site_link.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/advanc-link-directory/site_link.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/add_link.php:2
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/advanc-link-directory/site_link.php on line 2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/advanc-link-directory/site_link.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/edit_link.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/admin_link.php:2

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Front end default design template.), #2 (BackEnd View All Your Lists)
  • Plugin Name: You should set the name of your plugin on the first line ( === advanc-link-directory === )
The official readme.txt might help

advanc-link-directory/advlinkdirectory.php 92% from 13 tests

The main file in "Advanced Link Directory" v. 2.1 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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanc-link-directory.php" instead of "advlinkdirectory.php")

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
There were no executable files found in this plugin634 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP68777353
CSS2313189
PO File1363888
JavaScript1124

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/delete.png2.46KB1.48KB▼ 39.79%
img/edit.png2.22KB1.51KB▼ 31.97%
img/link.png0.41KB0.33KB▼ 20.14%
img/placeholder.png4.18KB2.28KB▼ 45.55%