84% auto-url-regenerator

Code Review | Auto URL Regenerator

WordPress plugin Auto URL Regenerator scored84%from 54 tests.

About plugin

  • Plugin page: auto-url-regenerator
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4.1
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: May 27, 2020
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: minesiccushe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /436 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼10.21ms] Passed 4 tests

An overview of server-side resources used by Auto URL Regenerator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1039.37 ▼1.04
Dashboard /wp-admin3.42 ▲0.0743.92 ▼18.31
Posts /wp-admin/edit.php3.53 ▲0.1742.71 ▼4.87
Add New Post /wp-admin/post-new.php6.02 ▲0.1379.15 ▼16.63
Media Library /wp-admin/upload.php3.34 ▲0.1137.99 ▲6.09
Auto URL Regenerator /wp-admin/options-general.php?page=aurg_options3.2930.09

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

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

Browser metrics Passed 4 tests

Auto URL Regenerator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.39 ▲0.001.64 ▼0.2138.88 ▼5.39
Dashboard /wp-admin2,199 ▲255.55 ▼0.1081.26 ▼18.7539.01 ▼6.73
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0135.04 ▼2.2631.64 ▼5.54
Add New Post /wp-admin/post-new.php1,539 ▲1118.16 ▼5.13614.54 ▼54.5271.90 ▲16.84
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.0396.08 ▲1.4041.98 ▼3.62
Auto URL Regenerator /wp-admin/options-general.php?page=aurg_options8662.0224.9764.22

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=aurg_options
    • > Notice in wp-content/plugins/auto-url-regenerator/auto-url-regenerator.php+206
    Undefined index: custom
    • > GET request to /wp-admin/options-general.php?page=aurg_options
    • > Warning in wp-content/plugins/auto-url-regenerator/auto-url-regenerator.php+206
    array_merge(): Expected parameter 2 to be an array, null given
    • > GET request to /wp-admin/options-general.php?page=aurg_options
    • > Warning in wp-content/plugins/auto-url-regenerator/auto-url-regenerator.php+207
    Invalid argument supplied for foreach()

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: post, page, rewrite_rules, url, automatically...

auto-url-regenerator/auto-url-regenerator.php Passed 13 tests

The main PHP file in "Auto URL Regenerator" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
投稿のURLに一意の識別子を付与し、また定期的に識別子を自動で更新するプラグイン

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin571 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39214539
JavaScript10023
CSS1009

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity104.00
▷ Minimum class complexity104.00
▷ Maximum class complexity104.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods31
▷ Static methods1238.71%
▷ Public methods2064.52%
▷ Protected methods00.00%
▷ Private methods1135.48%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin