83% capitalize-text-input

Code Review | Capitalize Text Input

WordPress plugin Capitalize Text Input scored 83% from 54 tests.

About plugin

  • Plugin page: capitalize-text-i...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 17, 2015
  • Latest release: Sep 14, 2021
  • Number of updates: 12
  • Update frequency: every 182.4 days
  • Top authors: labdav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,390 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.00MB] [CPU: ▼7.14ms] Passed 4 tests

A check of server-side resources used by Capitalize Text Input
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.66 ▼9.56
Dashboard /wp-admin3.31 ▲0.0042.40 ▼4.00
Posts /wp-admin/edit.php3.36 ▲0.0046.07 ▼4.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.07 ▼5.72
Media Library /wp-admin/upload.php3.23 ▲0.0031.46 ▼8.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Capitalize Text Input
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.59 ▼0.791.62 ▼0.2141.44 ▼3.57
Dashboard /wp-admin2,203 ▲155.85 ▲0.97109.33 ▼6.8841.64 ▼0.90
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0139.59 ▼1.9434.92 ▼0.46
Add New Post /wp-admin/post-new.php6,465 ▲4,93220.09 ▼3.36914.61 ▲227.4050.49 ▲0.62
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.01100.55 ▼6.3942.13 ▼4.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 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/capitalize-text-input/propercase.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

capitalize-text-input/propercase.php 85% from 13 tests

The main file in "Capitalize Text Input" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("capitalize-text-input.php" instead of "propercase.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
Success! There were no dangerous files found in this plugin50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP141531
PO File14810719

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin