90% capitalize-post-title

Code Review | Capitalize Titles and Headings

WordPress plugin Capitalize Titles and Headings scored90%from 54 tests.

About plugin

  • Plugin page: capitalize-post-t...
  • Plugin version: 1.0
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Jul 4, 2018
  • Latest release: Mar 17, 2023
  • Number of updates: 12
  • Update frequency: every 143.1 days
  • Top authors: bfintal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /1,589 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.01MB] [CPU: ▼7.01ms] Passed 4 tests

A check of server-side resources used by Capitalize Titles and Headings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.03 ▼1.37
Dashboard /wp-admin3.31 ▲0.0146.18 ▼2.80
Posts /wp-admin/edit.php3.36 ▲0.0142.97 ▼6.40
Add New Post /wp-admin/post-new.php5.84 ▼0.0580.16 ▼17.48
Media Library /wp-admin/upload.php3.23 ▲0.0137.51 ▲2.11

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

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

Browser metrics Passed 4 tests

Capitalize Titles and Headings: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.44 ▲0.091.86 ▲0.1739.13 ▼0.15
Dashboard /wp-admin2,197 ▲165.56 ▼0.2182.98 ▼23.1839.61 ▼7.26
Posts /wp-admin/edit.php2,102 ▲21.98 ▼0.0433.27 ▼3.8133.78 ▼2.92
Add New Post /wp-admin/post-new.php1,688 ▲16021.98 ▼1.01629.34 ▲2.6351.75 ▼0.95
Media Library /wp-admin/upload.php1,402 ▲54.28 ▲0.0697.86 ▲3.8539.29 ▼4.46

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

Optimizations

Plugin configuration 96% 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: title, heading, capitalize, block editor, blocks...

capitalize-post-title/plugin.php 92% from 13 tests

The main file in "Capitalize Titles and Headings" v. 1.0 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: It is recommended to name the main PHP file as the plugin slug ("capitalize-post-title.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin20 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP241718
JavaScript2022

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.80
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected