84% disable-url-autocorrect-guessing

Code Review | Disable URL Autocorrect Guessing

WordPress plugin Disable URL Autocorrect Guessing scored84%from 54 tests.

About plugin

  • Plugin page: disable-url-autoc...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Sep 19, 2020
  • Number of updates: 32
  • Update frequency: every 72.3 days
  • Top authors: haukep (93.75%)nacin (9.38%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /13,011 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.88ms] Passed 4 tests

Analyzing server-side resources used by Disable URL Autocorrect Guessing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.96 ▼3.62
Dashboard /wp-admin3.31 ▲0.0045.69 ▼5.94
Posts /wp-admin/edit.php3.36 ▲0.0048.75 ▼5.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.57 ▲1.73
Media Library /wp-admin/upload.php3.23 ▲0.0032.25 ▼0.12

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Disable URL Autocorrect Guessing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.42 ▼0.041.98 ▲0.3846.30 ▲5.95
Dashboard /wp-admin2,203 ▲185.79 ▼0.07100.77 ▼6.6240.17 ▼1.59
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0139.00 ▲3.6835.38 ▲1.21
Add New Post /wp-admin/post-new.php1,542 ▲922.97 ▼0.40646.53 ▼27.7180.49 ▲30.94
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0293.75 ▼16.8341.49 ▼5.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-url-autocorrect-guessing/disable-url-autocorrect-guessing.php:11

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: autocorrect, url, canonical, redirect

disable-url-autocorrect-guessing/disable-url-autocorrect-guessing.php 92% from 13 tests

The principal PHP file in "Disable URL Autocorrect Guessing" v. 2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1272

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin