74% iis-chinese-tag-permalink

Code Review | IIS Chinese Tag Permalink

WordPress plugin IIS Chinese Tag Permalink scored74%from 54 tests.

About plugin

  • Plugin page: iis-chinese-tag-p...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.3
  • WordPress version: 6.3.1
  • First release: Dec 16, 2010
  • Latest release: Oct 23, 2019
  • Number of updates: 32
  • Update frequency: every 101.0 days
  • Top authors: bossma (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /6,857 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.25MB] [CPU: ▼50.02ms] Passed 4 tests

Analyzing server-side resources used by IIS Chinese Tag Permalink
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7316.72 ▼24.19
Dashboard /wp-admin2.77 ▼0.5716.85 ▼50.70
Posts /wp-admin/edit.php2.77 ▼0.5816.54 ▼34.59
Add New Post /wp-admin/post-new.php2.77 ▼3.1115.21 ▼90.61
Media Library /wp-admin/upload.php2.77 ▼0.4616.73 ▼21.69

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for IIS Chinese Tag Permalink
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.35 ▲0.071.85 ▲0.1443.41 ▲1.01
Dashboard /wp-admin2,198 ▲185.61 ▼0.0290.12 ▲3.7840.17 ▼6.27
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0439.45 ▼1.0334.69 ▼0.93
Add New Post /wp-admin/post-new.php1,526 ▼023.50 ▲0.01701.56 ▲71.7250.42 ▲0.11
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.08113.13 ▲4.3346.15 ▼5.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/iis-chinese-tag-permalink/iis-chinese-tag-permalink.php+16
    Undefined index: PATH_INFO
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 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/iis-chinese-tag-permalink/iis-chinese-tag-permalink.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: chinese tag, iis

iis-chinese-tag-permalink/iis-chinese-tag-permalink.php Passed 13 tests

The main file in "IIS Chinese Tag Permalink" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
91 characters long description:
使IIS下的WordPress可以在友好的固定链接(Pretty Permalink)中使用中文。

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 plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131332

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin