84% normalizer

Code Review | Normalizer

WordPress plugin Normalizer scored84%from 54 tests.

About plugin

  • Plugin page: normalizer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.2-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 27, 2015
  • Latest release: Jul 27, 2015
  • Number of updates: 10
  • Update frequency: every 155.6 days
  • Top authors: zodiac1978 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,671 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.38ms] Passed 4 tests

Server-side resources used by Normalizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.68 ▲1.31
Dashboard /wp-admin3.31 ▼0.0445.97 ▼12.53
Posts /wp-admin/edit.php3.36 ▲0.0052.69 ▲8.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.64 ▼10.83
Media Library /wp-admin/upload.php3.23 ▲0.0035.56 ▲0.55

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Normalizer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.39 ▲0.041.96 ▲0.0845.25 ▲3.64
Dashboard /wp-admin2,192 ▲115.56 ▼0.1584.20 ▼16.6438.59 ▼4.63
Posts /wp-admin/edit.php2,100 ▼31.97 ▲0.0039.80 ▲2.3538.83 ▲7.43
Add New Post /wp-admin/post-new.php1,526 ▼023.49 ▲0.43641.09 ▲6.3652.89 ▼9.09
Media Library /wp-admin/upload.php1,394 ▼34.21 ▼0.0097.93 ▼1.9642.17 ▼2.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/normalizer/tl-normalize.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: unicode normalization form c, normalizer, normalize, normalization, unicode...

normalizer/tl-normalize.php 85% from 13 tests

The entry point to "Normalizer" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("normalizer.php" instead of "tl-normalize.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1163355

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin