84% insert-special-characters

Code Review | Insert Special Characters

WordPress plugin Insert Special Characters scored84%from 54 tests.

About plugin

  • Plugin page: insert-special-ch...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Aug 30, 2019
  • Latest release: Oct 17, 2023
  • Number of updates: 13
  • Update frequency: every 116.7 days
  • Top authors: 10up (53.85%)10upbot (46.15%)helen (15.38%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /44,820 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼6.38ms] Passed 4 tests

Server-side resources used by Insert Special Characters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.63 ▼12.76
Dashboard /wp-admin3.31 ▲0.0142.33 ▼6.53
Posts /wp-admin/edit.php3.37 ▲0.0143.92 ▼2.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.66 ▼3.47
Media Library /wp-admin/upload.php3.24 ▲0.0135.48 ▲0.80

Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Insert Special Characters
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.041.55 ▼0.2035.87 ▼10.32
Dashboard /wp-admin2,192 ▲185.63 ▲0.0892.23 ▲5.9741.95 ▲4.30
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0438.28 ▲3.3334.96 ▲0.07
Add New Post /wp-admin/post-new.php1,535 ▲724.13 ▲0.99639.23 ▼36.9151.19 ▼15.27
Media Library /wp-admin/upload.php1,400 ▲34.28 ▲0.0894.21 ▼2.1440.37 ▼1.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function InsertSpecialCharacters\\plugin_dir_path() in wp-content/plugins/insert-special-characters/insert-special-characters.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function InsertSpecialCharacters\\add_action() in wp-content/plugins/insert-special-characters/inc/plugin.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: character map, special characters, block editor, gutenberg, omega...

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

"Insert Special Characters" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
A Special Character inserter for the WordPress block editor (Gutenberg).

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
No dangerous file extensions were detected163 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP43258159
CSS2002
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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
Namespaces1
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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants2
▷ Global constants2100.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