84% healthy-filenames

Code Review | Healthy filename

WordPress plugin Healthy filename scored84%from 54 tests.

About plugin

  • Plugin page: healthy-filenames
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Oct 2, 2017
  • Latest release: Jan 26, 2022
  • Number of updates: 5
  • Update frequency: every 315.6 days
  • Top authors: leprincenoir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,213 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Healthy filename
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.11 ▼7.71
Dashboard /wp-admin3.31 ▲0.0144.11 ▼6.76
Posts /wp-admin/edit.php3.36 ▲0.0048.17 ▲3.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.55 ▼12.60
Media Library /wp-admin/upload.php3.23 ▲0.0035.95 ▲0.44

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Healthy filename
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.37 ▼1.011.86 ▼0.0743.34 ▼1.85
Dashboard /wp-admin2,206 ▲154.86 ▼0.17105.60 ▼0.3339.50 ▼2.41
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0536.96 ▼3.8433.95 ▲3.60
Add New Post /wp-admin/post-new.php1,533 ▲1923.28 ▲5.85681.82 ▲88.1155.66 ▲3.13
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.1596.13 ▼2.2843.72 ▲1.90

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/healthy-filenames/healthy-filenames.php

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: sanitize, media, healthy, images, filenames...

healthy-filenames/healthy-filenames.php Passed 13 tests

The principal PHP file in "Healthy filename" v. 1.0.0 is loaded by WordPress automatically on each request
30 characters long description:
Automatically clean filenames.

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
Success! There were no dangerous files found in this plugin38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2241538

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin