93% easy-url-shortcodes-eus

Code Review | Easy URL Shortcodes (EUS)

WordPress plugin Easy URL Shortcodes (EUS) scored 93% from 54 tests.

About plugin

  • Plugin page: easy-url-shortcod...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.2.2
  • WordPress version: 5.8.1
  • First release: Jul 11, 2015
  • Latest release: Jul 11, 2015
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: karencu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 1,280 total downloads

Benchmarks

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

An overview of server-side resources used by Easy URL Shortcodes (EUS)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1441.94 ▲16.50
Dashboard /wp-admin3.08 ▲0.0358.44 ▲10.55
Posts /wp-admin/edit.php3.14 ▲0.0355.46 ▲4.78
Add New Post /wp-admin/post-new.php5.44 ▲0.01100.50 ▼678.39
Media Library /wp-admin/upload.php3.03 ▲0.0336.86 ▼2.22
Easy URL Shortcodes (EUS) /wp-admin/options-general.php?page=eus_options3.0031.86

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Easy URL Shortcodes (EUS)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲12215.86 ▲0.1914.40 ▲5.2950.36 ▼2.09
Dashboard /wp-admin2,971 ▲405.92 ▲0.00161.84 ▼22.93146.05 ▲32.17
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0180.72 ▼0.03106.78 ▲6.52
Add New Post /wp-admin/post-new.php1,618 ▲321.48 ▼0.02302.42 ▼5.03112.56 ▼2.77
Media Library /wp-admin/upload.php1,812 ▲25.05 ▲0.03185.29 ▲21.52128.86 ▲11.36
Easy URL Shortcodes (EUS) /wp-admin/options-general.php?page=eus_options1,4832.1059.4085.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 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 50% 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-url-shortcodes-eus/easy-url-shortcodes.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Settings page screenshot) image not found
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === easy-url-shortcodes-eus === )
You can look at the official readme.txt

easy-url-shortcodes-eus/easy-url-shortcodes.php 92% from 13 tests

"Easy URL Shortcodes (EUS)" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-url-shortcodes-eus.php" instead of "easy-url-shortcodes.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
No dangerous file extensions were detected201 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14024201

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions17
▷ Named functions17100.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
1 PNG file occupies 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png96.18KB48.35KB▼ 49.73%