89% easy-symlinks

Code Review | Easy Symlinks

WordPress plugin Easy Symlinks scored89%from 54 tests.

About plugin

  • Plugin page: easy-symlinks
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0.3
  • WordPress version: 6.3.1
  • First release: Dec 25, 2019
  • Latest release: Oct 24, 2022
  • Number of updates: 5
  • Update frequency: every 206.8 days
  • Top authors: carl-alberto (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,030 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.58ms] Passed 4 tests

Server-side resources used by Easy Symlinks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.07 ▲0.19
Dashboard /wp-admin3.47 ▲0.1250.54 ▼11.89
Posts /wp-admin/edit.php3.58 ▲0.2248.58 ▼0.72
Add New Post /wp-admin/post-new.php6.05 ▲0.1689.75 ▼5.90
Media Library /wp-admin/upload.php3.39 ▲0.1639.17 ▲6.51
Easy Symlinks /wp-admin/options-general.php?page=easy_symlinks_settings3.3632.87

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
easy_symlinksversion
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Symlinks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.24 ▼1.421.74 ▼0.1543.68 ▼4.07
Dashboard /wp-admin2,204 ▲194.83 ▼0.0798.11 ▼21.0840.54 ▼7.35
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0341.43 ▲4.0834.66 ▲4.00
Add New Post /wp-admin/post-new.php1,522 ▲323.24 ▼0.10586.80 ▼12.1542.92 ▼3.64
Media Library /wp-admin/upload.php1,392 ▲14.22 ▲0.13102.43 ▼3.6042.66 ▲1.16
Easy Symlinks /wp-admin/options-general.php?page=easy_symlinks_settings8252.2025.4428.17

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • easy_symlinksversion
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: symlink, plugin, wordpress

easy-symlinks/easy-symlinks.php 85% from 13 tests

This is the main PHP file of "Easy Symlinks" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 246 characters long)
  • Domain Path: The domain path folder does not exist ("/lang/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin834 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7174465804
JavaScript15530

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity28.25
▷ Minimum class complexity11.00
▷ Maximum class complexity43.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3692.31%
▷ Protected methods00.00%
▷ Private methods37.69%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin