88% umanit-update-urls

Code Review | UmanIT Update URLs

WordPress plugin UmanIT Update URLs scored 88% from 54 tests.

About plugin

  • Plugin page: umanit-update-urls
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 5.9.2
  • First release: Jun 13, 2013
  • Latest release: Jun 14, 2013
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: vrobic (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active / 4,169 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼296.66ms] Passed 4 tests

Analyzing server-side resources used by UmanIT Update URLs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0854.79 ▼5.36
Dashboard /wp-admin3.48 ▲0.0736.77 ▼32.06
Posts /wp-admin/edit.php3.72 ▲0.0742.25 ▲6.59
Add New Post /wp-admin/post-new.php6.95 ▼0.0294.25 ▼1,147.20
Media Library /wp-admin/upload.php3.37 ▲0.0723.41 ▼2.00
Update URLs /wp-admin/tools.php?page=umanit-update-urls/updateurls.php3.3426.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

UmanIT Update URLs: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲3816.46 ▲0.685.64 ▼0.582.17 ▼0.19
Dashboard /wp-admin2,911 ▲506.16 ▼0.06134.98 ▼0.95195.19 ▲37.11
Posts /wp-admin/edit.php2,697 ▲133.29 ▲0.2363.65 ▼30.58138.10 ▼5.80
Add New Post /wp-admin/post-new.php1,668 ▲717.01 ▲1.13407.90 ▼22.06163.61 ▲3.97
Media Library /wp-admin/upload.php1,707 ▲185.57 ▲0.04145.65 ▼9.40242.77 ▲2.88
Update URLs /wp-admin/tools.php?page=umanit-update-urls/updateurls.php1,3282.6557.24143.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/umanit-update-urls/updateurls.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/tools.php?page=umanit-update-urls/updateurls.php
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/umanit-update-urls/js/listeners.js:27:75)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
    • > GET request to /wp-admin/tools.php?page=umanit-update-urls/updateurls.php
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (The plugin's screen)
The official readme.txt is a good inspiration

umanit-update-urls/updateurls.php 85% from 13 tests

Analyzing the main PHP file in "UmanIT Update URLs" version 1.0
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("umanit-update-urls.php" instead of "updateurls.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
There were no executable files found in this plugin519 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15364390
CSS15069
JavaScript115760

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png116.08KB39.71KB▼ 65.79%