10% advanc-link-directory

Code Review | Advanced Link Directory

WordPress plugin Advanced Link Directory scored 10% from 54 tests.

About plugin

  • Plugin page: advanc-link-direc...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 5.9.2
  • First release: Aug 27, 2015
  • Latest release: May 20, 2019
  • Number of updates: 50
  • Update frequency: every 27.3 days
  • Top authors: Malysch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 3,224 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; AdvLinkDirectory has a deprecated constructor

Server metrics [RAM: ▼2.46MB] [CPU: ▼346.39ms] Passed 4 tests

Analyzing server-side resources used by Advanced Link Directory
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.91 ▼1.604.90 ▼45.10
Dashboard /wp-admin1.93 ▼1.483.85 ▼31.54
Posts /wp-admin/edit.php1.93 ▼1.714.11 ▼33.65
Add New Post /wp-admin/post-new.php1.93 ▼5.045.06 ▼1,275.27
Media Library /wp-admin/upload.php1.93 ▼1.374.19 ▼25.70
About Plugin /wp-admin/admin.php?page=plugin_info1.934.20
Add Link /wp-admin/admin.php?page=add_link1.934.85
Link Directory /wp-admin/admin.php?page=edit-reviews1.933.43

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, no new options
New tables
wp_adv_reviews

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Link Directory
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,833 ▲9115.90 ▲0.126.92 ▲1.142.73 ▲0.74
Dashboard /wp-admin2,925 ▲746.16 ▼0.02120.81 ▼14.33156.46 ▼4.27
Posts /wp-admin/edit.php2,728 ▲713.25 ▲0.0164.32 ▼0.24138.11 ▼6.20
Add New Post /wp-admin/post-new.php1,722 ▲6117.40 ▲0.19402.94 ▼20.12162.67 ▲5.23
Media Library /wp-admin/upload.php1,730 ▲325.53 ▲0.05140.24 ▼6.32186.12 ▼8.16
About Plugin /wp-admin/admin.php?page=plugin_info1,0422.4451.1098.81
Add Link /wp-admin/admin.php?page=add_link1,1372.4155.1398.97
Link Directory /wp-admin/admin.php?page=edit-reviews1,0692.4253.7399.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; AdvLinkDirectory has a deprecated constructor
  • Zombie tables detected upon uninstall: 1 table
    • wp_adv_reviews

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=edit-reviews
    • > Deprecated in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; AdvLinkDirectory has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=edit-reviews
    • > User notice in wp-includes/functions.php+5768
    register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
    • > GET request to /wp-admin/admin.php?page=add_link
    • > Notice in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+255
    Undefined index: link
    • > GET request to /wp-admin/admin.php?page=add_link
    • > Notice in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+257
    Undefined index: ankor
    • > GET request to /wp-admin/admin.php?page=add_link
    • > Notice in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+258
    Undefined index: button
    • > GET request to /wp-admin/admin.php?page=add_link
    • > Notice in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+259
    Undefined index: description
    • > GET request to /wp-admin/admin.php?page=add_link
    • > Notice in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+260
    Undefined index: reverse_link
    • > GET request to /wp-admin/admin.php?page=add_link
    • > Notice in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+261
    Undefined index: tiz
    • > GET request to /wp-admin/admin.php?page=add_link
    • > Notice in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+262
    Undefined index: pr
    • > GET request to /wp-admin/admin.php?page=add_link
    • > Notice in wp-content/plugins/advanc-link-directory/advlinkdirectory.php+263
    Undefined index: note

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/advanc-link-directory/advlinkdirectory.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/admin_link.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/add_link.php:2
    • > 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: Using $this when not in object context in wp-content/plugins/advanc-link-directory/site_link.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/edit_link.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === advanc-link-directory === )
  • Screenshots: These screenshots require images: #1 (Front end default design template.), #2 (BackEnd View All Your Lists)
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Advanced Link Directory" version 2.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanc-link-directory.php" instead of "advlinkdirectory.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected658 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP610984377
CSS2313189
PO File1363888
JavaScript1124

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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/placeholder.png4.18KB2.28KB▼ 45.55%
img/delete.png2.46KB1.48KB▼ 39.79%
img/link.png0.41KB0.33KB▼ 20.14%
img/edit.png2.22KB1.51KB▼ 31.97%