84% hawaiian-characters

Code Review | Hawaiian Characters

WordPress plugin Hawaiian Characters scored84%from 54 tests.

About plugin

  • Plugin page: hawaiian-characters
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Feb 28, 2016
  • Latest release: Jun 3, 2021
  • Number of updates: 15
  • Update frequency: every 128.3 days
  • Top authors: mrwweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,346 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.85ms] Passed 4 tests

Analyzing server-side resources used by Hawaiian Characters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.17 ▼3.84
Dashboard /wp-admin3.32 ▲0.0250.28 ▼8.84
Posts /wp-admin/edit.php3.37 ▲0.0246.98 ▼9.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.22 ▼1.63
Media Library /wp-admin/upload.php3.25 ▲0.0241.67 ▲5.91

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Hawaiian Characters
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.37 ▼0.021.70 ▼0.4842.35 ▼4.57
Dashboard /wp-admin2,195 ▲155.60 ▼0.0888.06 ▼14.1741.19 ▼1.84
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0535.09 ▼4.1433.74 ▼1.71
Add New Post /wp-admin/post-new.php1,554 ▲2818.20 ▲0.71611.59 ▼72.5855.68 ▼9.58
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.0698.17 ▼0.8844.15 ▼0.94

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/hawaiian-characters/hawaiian-characters.php:95

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 97% 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 your attention: The official readme.txt is a good inspiration

hawaiian-characters/hawaiian-characters.php Passed 13 tests

Analyzing the main PHP file in "Hawaiian Characters" version 2.0.1
86 characters long description:
Adds the correct characters / diacriticals to the WordPress Editor for use in Hawaiian

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin106 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142398
JavaScript1208

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin