84% wp-easy-directory-link

Code Review | WP Easy Directory Link

WordPress plugin WP Easy Directory Link scored 84% 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: 5.9.2
  • 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

20+ active / 1,167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼295.35ms] Passed 4 tests

This is a short check of server-side resources used by WP Easy Directory Link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0354.64 ▲1.71
Dashboard /wp-admin3.43 ▲0.0332.39 ▼0.72
Posts /wp-admin/edit.php3.66 ▲0.0236.49 ▲0.20
Add New Post /wp-admin/post-new.php6.91 ▼0.0696.04 ▼1,177.25
Media Library /wp-admin/upload.php3.32 ▲0.0224.46 ▼3.61
All Links /wp-admin/link-manager.php3.3423.70
Add New /wp-admin/link-add.php3.3025.08
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.3127.22

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
widget_links

Browser metrics Passed 4 tests

A check of browser resources used by WP Easy Directory Link
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,807 ▲5416.13 ▲0.526.17 ▼0.272.12 ▼0.36
Dashboard /wp-admin2,928 ▲746.12 ▼0.08114.84 ▼29.03150.76 ▼13.43
Posts /wp-admin/edit.php2,733 ▲453.25 ▼0.1162.32 ▼1.13136.49 ▲2.20
Add New Post /wp-admin/post-new.php1,694 ▲3318.14 ▲1.79390.61 ▼53.40156.55 ▲1.59
Media Library /wp-admin/upload.php1,737 ▲395.56 ▲0.07133.15 ▼7.53181.84 ▼7.83
All Links /wp-admin/link-manager.php1,3382.4152.21112.64
Add New /wp-admin/link-add.php2,2323.4874.10157.64
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,6852.7655.54112.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_links

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 no errors were found, 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: easy, directory, simple, links, listing

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
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

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
There were no executable files found in this plugin101 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2156067
PO File24434

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
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
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin