90% clean-media-library-file-names

Code Review | Clean Media Library File Names

WordPress plugin Clean Media Library File Names scored90%from 54 tests.

About plugin

  • Plugin page: clean-media-libra...
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.4.0
  • WordPress version: 6.3.1
  • First release: May 9, 2014
  • Latest release: Dec 8, 2015
  • Number of updates: 6
  • Update frequency: every 96.3 days
  • Top authors: webdeveric (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,734 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Clean Media Library File Names
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.56 ▼2.19
Dashboard /wp-admin3.31 ▲0.0147.90 ▼3.77
Posts /wp-admin/edit.php3.36 ▲0.0149.40 ▲1.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.77 ▼5.60
Media Library /wp-admin/upload.php3.24 ▲0.0133.63 ▼2.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Clean Media Library File Names
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.77 ▼0.661.76 ▼0.0644.44 ▼1.96
Dashboard /wp-admin2,206 ▲154.86 ▼0.05109.33 ▲2.7442.55 ▲4.60
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0741.88 ▲4.5635.80 ▲3.12
Add New Post /wp-admin/post-new.php1,542 ▲918.29 ▼4.87605.49 ▲14.2952.25 ▲5.01
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0195.76 ▼7.5941.45 ▼4.09

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: special characters, media library, sanitize, filename

clean-media-library-file-names/clean-media-library-file-names.php Passed 13 tests

This is the main PHP file of "Clean Media Library File Names" version 0.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
This plugin cleans uploaded file names to remove special characters and spaces.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1222143

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin