89% simple-urls-legacy

Code Review | Simple URLs Legacy

WordPress plugin Simple URLs Legacy scored89%from 54 tests.

About plugin

  • Plugin page: simple-urls-legacy
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2022
  • Latest release: Nov 13, 2023
  • Number of updates: 8
  • Update frequency: every 42.8 days
  • Top authors: RYNONET (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /627 total downloads

Benchmarks

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 gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.05ms] Passed 4 tests

A check of server-side resources used by Simple URLs Legacy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.75 ▼4.57
Dashboard /wp-admin3.38 ▲0.0345.52 ▼15.74
Posts /wp-admin/edit.php3.50 ▲0.1347.22 ▲2.78
Add New Post /wp-admin/post-new.php6.02 ▲0.1388.83 ▼8.57
Media Library /wp-admin/upload.php3.30 ▲0.0734.91 ▲0.67
Add New /wp-admin/post-new.php?post_type=surl3.3441.46
Simple URLs Legacy /wp-admin/edit.php?post_type=surl3.3539.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simple URLs Legacy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3314.27 ▼0.071.77 ▼0.2740.48 ▼3.50
Dashboard /wp-admin2,225 ▲485.68 ▲0.0393.13 ▼8.6435.98 ▼7.83
Posts /wp-admin/edit.php2,130 ▲302.01 ▲0.0440.15 ▲0.9737.48 ▲0.82
Add New Post /wp-admin/post-new.php1,558 ▲3225.27 ▲1.63596.00 ▼89.6764.23 ▲11.91
Media Library /wp-admin/upload.php1,430 ▲304.21 ▼0.0298.25 ▼5.4543.30 ▲0.63
Add New /wp-admin/post-new.php?post_type=surl1,4782.5353.1451.62
Simple URLs Legacy /wp-admin/edit.php?post_type=surl1,1181.9331.7431.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (The URL management screen), #2 (The URL create/edit screen)
The official readme.txt is a good inspiration

simple-urls-legacy/plugin.php 92% from 13 tests

This is the main PHP file of "Simple URLs Legacy" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-urls-legacy.php" instead of "plugin.php")

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
No dangerous file extensions were detected246 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP675157231
Markdown18015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.00
▷ Minimum class complexity6.00
▷ Maximum class complexity22.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png47.84KB18.24KB▼ 61.88%
screenshot-1.png156.72KB68.20KB▼ 56.48%
assets/surleg-banner.png74.26KB24.34KB▼ 67.22%