84% make-filename-lowercase

Code Review | Make Filename Lowercase

WordPress plugin Make Filename Lowercase scored84%from 54 tests.

About plugin

  • Plugin page: make-filename-low...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.3
  • WordPress version: 6.3.1
  • First release: Feb 11, 2011
  • Latest release: May 2, 2022
  • Number of updates: 28
  • Update frequency: every 146.4 days
  • Top authors: ereckers (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /5,988 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.57ms] Passed 4 tests

A check of server-side resources used by Make Filename Lowercase
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.11 ▼0.93
Dashboard /wp-admin3.31 ▼0.0442.79 ▼15.95
Posts /wp-admin/edit.php3.36 ▲0.0042.85 ▼5.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.03 ▼23.01
Media Library /wp-admin/upload.php3.23 ▲0.0034.07 ▼1.87

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
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Make Filename Lowercase
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼1.181.68 ▼0.2736.70 ▼5.52
Dashboard /wp-admin2,206 ▲245.77 ▲0.6296.63 ▼20.8038.77 ▼4.34
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0338.51 ▼1.9836.61 ▲1.18
Add New Post /wp-admin/post-new.php1,539 ▲1723.12 ▼0.16694.23 ▲56.9558.18 ▲5.85
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0196.55 ▲0.5440.67 ▼3.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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
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 add_filter() in wp-content/plugins/make-filename-lowercase/make-filename-lowercase.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

make-filename-lowercase/make-filename-lowercase.php Passed 13 tests

The principal PHP file in "Make Filename Lowercase" v. 1.0.2 is loaded by WordPress automatically on each request
42 characters long description:
Sets uploaded media filename to lowercase.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16279

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.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