84% wp-easy-directory-link

Code Review | WP Easy Directory Link

WordPress plugin WP Easy Directory Link scored84%from 54 tests.

About plugin

  • Plugin page: wp-easy-directory...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1.1
  • WordPress version: 6.3.1
  • First release: Jun 17, 2015
  • Latest release: Jun 20, 2015
  • Number of updates: 15
  • Update frequency: every 0.2 days
  • Top authors: barrahome (73.33%)scarnago (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,332 total downloads


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.02MB] [CPU: ▼3.27ms] Passed 4 tests

Analyzing server-side resources used by WP Easy Directory Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.66 ▼3.89
Dashboard /wp-admin3.33 ▲0.0248.76 ▼1.43
Posts /wp-admin/edit.php3.38 ▲0.0247.62 ▼3.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.59 ▼4.43
Media Library /wp-admin/upload.php3.25 ▲0.0237.41 ▲0.34
All Links /wp-admin/link-manager.php3.2737.01
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.2435.69
Add New /wp-admin/link-add.php3.2337.09

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Easy Directory Link
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.57 ▼0.854.80 ▲2.9945.03 ▲0.23
Dashboard /wp-admin2,237 ▲465.90 ▲1.03129.31 ▲27.2541.92 ▼2.79
Posts /wp-admin/edit.php2,123 ▲342.00 ▼0.0634.99 ▼2.3433.30 ▼0.44
Add New Post /wp-admin/post-new.php1,561 ▲4223.26 ▲0.14687.35 ▲58.1649.84 ▼5.21
Media Library /wp-admin/upload.php1,416 ▲284.18 ▼0.06105.10 ▲2.3645.57 ▼4.03
All Links /wp-admin/link-manager.php1,0561.6924.1330.50
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,2962.1327.6530.97
Add New /wp-admin/link-add.php1,6472.2647.8437.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_links
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-easy-directory-link/wp-easy-directory-link.php:28

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: directory, links, easy, listing, simple

wp-easy-directory-link/wp-easy-directory-link.php 92% from 13 tests

The main PHP script in "WP Easy Directory Link" version 1.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected101 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File24434

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin