90% unfc-normalize

Code Review | UNFC Nörmalize

WordPress plugin UNFC Nörmalize scored90%from 54 tests.

About plugin

  • Plugin page: unfc-normalize
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.13-4.7.1
  • WordPress version: 6.3.1
  • First release: Aug 2, 2016
  • Latest release: Jan 19, 2017
  • Number of updates: 19
  • Update frequency: every 9.0 days
  • Top authors: gitlost (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,825 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by UNFC Nörmalize
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.56 ▲0.86
Dashboard /wp-admin3.32 ▲0.0251.85 ▼1.50
Posts /wp-admin/edit.php3.37 ▲0.0245.78 ▼4.91
Add New Post /wp-admin/post-new.php5.96 ▲0.07103.18 ▼2.31
Media Library /wp-admin/upload.php3.25 ▲0.0239.24 ▲4.77
UNFC Nörm Db Check /wp-admin/tools.php?page=unfc-normalize-db_check3.2134.04

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for UNFC Nörmalize
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18217.66 ▲3.1712.30 ▲10.2542.43 ▲0.80
Dashboard /wp-admin2,210 ▲306.89 ▲1.2396.10 ▲8.3645.16 ▲2.82
Posts /wp-admin/edit.php2,103 ▲34.10 ▲2.0642.45 ▲0.6832.47 ▼3.90
Add New Post /wp-admin/post-new.php1,543 ▲1324.15 ▲0.89611.73 ▼10.2234.23 ▼21.28
Media Library /wp-admin/upload.php1,421 ▲216.04 ▲1.83108.69 ▲10.6642.61 ▼6.23
UNFC Nörm Db Check /wp-admin/tools.php?page=unfc-normalize-db_check8223.6432.3325.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: normalization, normalize, utf-8, nfc, normalizer...

unfc-normalize/unfc-normalize.php Passed 13 tests

The principal PHP file in "UNFC Nörmalize" v. 1.0.6 is loaded by WordPress automatically on each request
47 characters long description:
Normalizes UTF-8 input to Normalization Form C.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected8,515 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP107701,1867,248
JavaScript7106140806
PO File1124242326
Markdown2970135

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity121.33
▷ Minimum class complexity5.00
▷ Maximum class complexity453.00
Average method complexity5.77
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods152
▷ Static methods1811.84%
▷ Public methods12078.95%
▷ Protected methods2818.42%
▷ Private methods42.63%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants40
▷ Global constants3177.50%
▷ Class constants922.50%
▷ Public constants9100.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 images were found in this plugin