84% special-characters-remove

Code Review | Special Characters Remove

WordPress plugin Special Characters Remove scored84%from 54 tests.

About plugin

  • Plugin page: special-character...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: May 26, 2022
  • Latest release: Jul 21, 2023
  • Number of updates: 8
  • Update frequency: every 52.5 days
  • Top authors: siriusproio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Special Characters Remove
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.96 ▼4.27
Dashboard /wp-admin3.31 ▲0.0141.88 ▼2.75
Posts /wp-admin/edit.php3.36 ▲0.0043.10 ▼5.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.42 ▼3.54
Media Library /wp-admin/upload.php3.23 ▲0.0035.30 ▲0.71

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Special Characters Remove: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6014.35 ▼0.001.61 ▼0.3650.85 ▲10.25
Dashboard /wp-admin2,231 ▲575.61 ▼0.0583.22 ▼1.6737.72 ▼3.68
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0134.08 ▲0.1736.22 ▲3.00
Add New Post /wp-admin/post-new.php1,529 ▲323.37 ▼0.21601.58 ▼25.8150.85 ▼1.37
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.0895.41 ▼4.0842.51 ▲0.99

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

Smoke tests 75% from 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 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/special-characters-remove/special-characters-remove.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

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

The main PHP file in "Special Characters Remove" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
Simply Remove Special Characters from WordPress attachments, slugs, permalinks, post and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11715100

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin