77% uyghur-uly-permalinks

Code Review | uyghur ULY Permalinks (ئۇيغۇرچە مۇقىم ئۇلانمىلا)

WordPress plugin uyghur ULY Permalinks (ئۇيغۇرچە مۇقىم ئۇلانمىلا) scored77%from 54 tests.

About plugin

  • Plugin page: uyghur-uly-permal...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 0.6-4.4
  • WordPress version: 6.3.1
  • First release: Jan 22, 2014
  • Latest release: Nov 19, 2015
  • Number of updates: 15
  • Update frequency: every 44.4 days
  • Top authors: xirwajim (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,823 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.16ms] Passed 4 tests

Server-side resources used by uyghur ULY Permalinks (ئۇيغۇرچە مۇقىم ئۇلانمىلا)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1238.89 ▲1.33
Dashboard /wp-admin3.44 ▲0.0948.53 ▼11.08
Posts /wp-admin/edit.php3.55 ▲0.1947.37 ▲0.58
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.12 ▼15.48
Media Library /wp-admin/upload.php3.36 ▲0.1336.02 ▲1.36
ئۇيغۇرچە مۇقىم ئۇلانمىلا /wp-admin/options-general.php?page=uyghur-uly-permalinks/ULY-permalink.php3.3030.42

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
ULYPermalink_length
db_upgraded
widget_theysaidso_widget
widget_recent-comments
ULYPermalink_separator
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for uyghur ULY Permalinks (ئۇيغۇرچە مۇقىم ئۇلانمىلا)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.14 ▼1.171.81 ▲0.1743.33 ▲0.63
Dashboard /wp-admin2,210 ▲254.87 ▼0.98100.43 ▼2.2048.02 ▲2.13
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.1435.37 ▼6.9136.50 ▲0.11
Add New Post /wp-admin/post-new.php1,550 ▲3018.20 ▼5.03649.51 ▼47.1563.80 ▲9.01
Media Library /wp-admin/upload.php1,389 ▼24.21 ▲0.0397.43 ▼4.9444.57 ▼4.24
ئۇيغۇرچە مۇقىم ئۇلانمىلا /wp-admin/options-general.php?page=uyghur-uly-permalinks/ULY-permalink.php8992.0325.9867.56

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=uyghur-uly-permalinks/ULY-permalink.php
    • > Notice in wp-content/plugins/uyghur-uly-permalinks/ULY-permalink.php+41
    Undefined index: reset_posts_name
    • > GET request to /wp-admin/options-general.php?page=uyghur-uly-permalinks/ULY-permalink.php
    • > Notice in wp-content/plugins/uyghur-uly-permalinks/ULY-permalink.php+45
    Undefined index: reset_pages_name
    • > GET request to /wp-admin/options-general.php?page=uyghur-uly-permalinks/ULY-permalink.php
    • > Notice in wp-content/plugins/uyghur-uly-permalinks/ULY-permalink.php+49
    Undefined index: reset_category_slug
    • > GET request to /wp-admin/options-general.php?page=uyghur-uly-permalinks/ULY-permalink.php
    • > Notice in wp-content/plugins/uyghur-uly-permalinks/ULY-permalink.php+53
    Undefined index: reset_tag_slug
    • > GET request to /wp-admin/options-general.php?page=uyghur-uly-permalinks/ULY-permalink.php
    • > Notice in wp-content/plugins/uyghur-uly-permalinks/ULY-permalink.php+57
    Undefined index: recover_category_slug
    • > GET request to /wp-admin/options-general.php?page=uyghur-uly-permalinks/ULY-permalink.php
    • > Notice in wp-content/plugins/uyghur-uly-permalinks/ULY-permalink.php+61
    Undefined index: recover_tag_slug

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/uyghur-uly-permalinks/ULY-permalink.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === uyghur-uly-permalinks === )
The official readme.txt might help

uyghur-uly-permalinks/ULY-permalink.php 85% from 13 tests

The principal PHP file in "uyghur ULY Permalinks (ئۇيغۇرچە مۇقىم ئۇلانمىلا)" v. 0.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 282 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("uyghur-uly-permalinks.php" instead of "ULY-permalink.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin845 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29118845

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 132)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity151.00
▷ Minimum class complexity151.00
▷ Maximum class complexity151.00
Average method complexity31.00
▷ Minimum method complexity1.00
▷ Maximum method complexity132.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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