90% wp-force-lowercase-urls

Code Review | WP Force Lowercase URLs

WordPress plugin WP Force Lowercase URLs scored 90% from 54 tests.

About plugin

  • Plugin page: wp-force-lowercas...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.0.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2015
  • Latest release: Feb 3, 2019
  • Number of updates: 16
  • Update frequency: every 77.0 days
  • Top authors: joshbuchea (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

6,000+ active / 16,086 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: ▼4.04ms] Passed 4 tests

This is a short check of server-side resources used by WP Force Lowercase URLs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.19 ▼9.15
Dashboard /wp-admin3.31 ▲0.0044.65 ▼3.21
Posts /wp-admin/edit.php3.36 ▲0.0049.37 ▼0.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.43 ▼3.66
Media Library /wp-admin/upload.php3.23 ▲0.0036.01 ▲0.38

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Force Lowercase URLs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.441.86 ▼0.3543.63 ▲2.40
Dashboard /wp-admin2,206 ▲184.86 ▼0.03107.31 ▼1.8742.26 ▼2.15
Posts /wp-admin/edit.php2,089 ▲32.05 ▼0.0139.08 ▲1.2536.26 ▲3.05
Add New Post /wp-admin/post-new.php1,535 ▼723.37 ▲5.00575.14 ▼62.8155.80 ▲2.13
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.0898.34 ▼1.8745.05 ▲0.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
4 plugin tags: 301, lowercase, url, redirect

wp-force-lowercase-urls/wp-force-lowercase-urls.php Passed 13 tests

The principal PHP file in "WP Force Lowercase URLs" v. 2.0.1 is loaded by WordPress automatically on each request
37 characters long description:
Redirect uppercase URLs to lowercase.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin43 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2182329
Markdown19014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.78
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity3.50
▷ Minimum method complexity2.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin