84% remove-special-characters

Code Review | Remove Special Characters

WordPress plugin Remove Special Characters scored84%from 54 tests.

About plugin

  • Plugin page: remove-special-ch...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2014
  • Latest release: Apr 17, 2015
  • Number of updates: 4
  • Update frequency: every 33.7 days
  • Top authors: chrdesigner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,065 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Remove Special Characters
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.97 ▲0.65
Dashboard /wp-admin3.31 ▲0.0148.53 ▼4.16
Posts /wp-admin/edit.php3.36 ▲0.0048.04 ▲1.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.86 ▲1.07
Media Library /wp-admin/upload.php3.23 ▲0.0032.38 ▼6.65

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Special Characters
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.211.76 ▼0.1147.61 ▲4.48
Dashboard /wp-admin2,195 ▲185.61 ▼0.0293.16 ▼9.1738.85 ▼6.19
Posts /wp-admin/edit.php2,097 ▼02.02 ▼0.0136.11 ▼1.5335.66 ▲0.98
Add New Post /wp-admin/post-new.php1,526 ▼023.64 ▲0.54682.03 ▼43.5054.33 ▼13.45
Media Library /wp-admin/upload.php1,397 ▼04.10 ▼0.14106.52 ▲1.1745.01 ▼4.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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/remove-special-characters/remove-special-characters.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin Deactivated), #2 (Plugin Activated)
Please take inspiration from this readme.txt

remove-special-characters/remove-special-characters.php Passed 13 tests

The main PHP file in "Remove Special Characters" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
This plugin will help when you upload images with special characters.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1299

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png6.67KB2.89KB▼ 56.70%
screenshot-1.png6.79KB2.93KB▼ 56.81%