84% remove-special-characters-on-upload

Code Review | Remove Special Characters on Upload

WordPress plugin Remove Special Characters on Upload scored84%from 54 tests.

About plugin

  • Plugin page: remove-special-ch...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 15, 2017
  • Latest release: Aug 21, 2023
  • Number of updates: 9
  • Update frequency: every 260.3 days
  • Top authors: douglasfaria10 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Remove Special Characters on Upload
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.24 ▲3.49
Dashboard /wp-admin3.31 ▼0.0443.39 ▼17.72
Posts /wp-admin/edit.php3.36 ▲0.0045.48 ▼1.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.18 ▼22.62
Media Library /wp-admin/upload.php3.23 ▲0.0035.28 ▼0.90

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Remove Special Characters on Upload
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.071.72 ▲0.0143.01 ▲0.40
Dashboard /wp-admin2,203 ▲245.92 ▲0.02108.83 ▲3.0438.45 ▼8.08
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0438.38 ▲0.8334.80 ▼2.25
Add New Post /wp-admin/post-new.php1,537 ▲1823.12 ▲0.08661.48 ▲13.0758.53 ▲2.73
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.04109.74 ▲10.4247.85 ▲5.31

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 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/remove-special-characters-on-upload/remove-special-characters.php:85

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

remove-special-characters-on-upload/remove-special-characters.php 92% from 13 tests

The entry point to "Remove Special Characters on Upload" version 1.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("remove-special-characters-on-upload.php" instead of "remove-special-characters.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
There were no executable files found in this plugin62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191562

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.02
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected