100% capitalize-post-title

Code Review | Capitalize Post Title

WordPress plugin Capitalize Post Title scored 100% from 54 tests.

About plugin

  • Plugin page: capitalize-post-t...
  • Plugin version: 0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.6
  • WordPress version: 5.8.1
  • First release: Jul 4, 2018
  • Latest release: Jul 4, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: bfintal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 927 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼140.02ms] Passed 4 tests

A check of server-side resources used by Capitalize Post Title
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1229.97 ▲8.70
Dashboard /wp-admin3.06 ▲0.0150.70 ▲0.05
Posts /wp-admin/edit.php3.11 ▲0.0149.37 ▲2.46
Add New Post /wp-admin/post-new.php5.42 ▼0.0198.55 ▼557.64
Media Library /wp-admin/upload.php3.00 ▲0.0032.10 ▼4.94

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Capitalize Post Title: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10916.22 ▲0.7411.76 ▲1.9048.69 ▼0.70
Dashboard /wp-admin2,975 ▲446.12 ▲0.15140.88 ▼8.57122.04 ▲2.10
Posts /wp-admin/edit.php2,741 ▲22.70 ▲0.0171.93 ▲1.0587.27 ▲0.28
Add New Post /wp-admin/post-new.php1,685 ▲18518.71 ▲0.09380.73 ▼20.56111.81 ▼9.69
Media Library /wp-admin/upload.php1,809 ▲25.04 ▲0.01167.74 ▲20.44126.57 ▲0.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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
7 plugin tags: article, page, title, blog, capitalize...

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

The main file in "Capitalize Post Title" v. 0.1 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 plugin60 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript26453
PHP13137

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.33
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%
Functions1
▷ Named functions1100.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