99% wpartisan-filename-sanitizer

Code Review | WPArtisan Filename Sanitizer

WordPress plugin WPArtisan Filename Sanitizer scored 99% from 54 tests.

About plugin

  • Plugin page: wpartisan-filenam...
  • Plugin version: 0.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8.2
  • WordPress version: 5.8.1
  • First release: May 27, 2016
  • Latest release: Nov 7, 2017
  • Number of updates: 9
  • Update frequency: every 58.8 days
  • Top authors: ozthegreat (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active / 2,005 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WPArtisan Filename Sanitizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1230.12 ▲4.56
Dashboard /wp-admin3.06 ▲0.0151.51 ▲5.49
Posts /wp-admin/edit.php3.12 ▼0.0050.70 ▼4.71
Add New Post /wp-admin/post-new.php5.42 ▼0.0196.84 ▼567.73
Media Library /wp-admin/upload.php3.01 ▲0.0137.49 ▲4.02

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: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WPArtisan Filename Sanitizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲4215.94 ▲0.327.70 ▼2.8146.44 ▼7.35
Dashboard /wp-admin2,967 ▲365.96 ▼0.01138.34 ▼27.70118.90 ▲3.21
Posts /wp-admin/edit.php2,739 ▼02.82 ▲0.1373.10 ▲9.4893.49 ▼6.02
Add New Post /wp-admin/post-new.php1,604 ▼7918.58 ▲0.24388.54 ▼9.34113.29 ▲2.00
Media Library /wp-admin/upload.php1,807 ▼05.06 ▲0.07171.53 ▲4.57123.19 ▲0.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt might help

wpartisan-filename-sanitizer/wpa-filename-sanitizer.php 92% from 13 tests

This is the main PHP file of "WPArtisan Filename Sanitizer" version 0.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpartisan-filename-sanitizer.php" instead of "wpa-filename-sanitizer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP282621

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin