84% capitalized-wp-titles

Code Review | WP Capitalized Titles

WordPress plugin WP Capitalized Titles scored84%from 54 tests.

About plugin

  • Plugin page: capitalized-wp-ti...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.9
  • WordPress version: 6.3.1
  • First release: Apr 20, 2014
  • Latest release: Apr 20, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: Skraggy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /987 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.95ms] Passed 4 tests

An overview of server-side resources used by WP Capitalized Titles
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.32 ▼11.03
Dashboard /wp-admin3.31 ▲0.0044.92 ▼2.49
Posts /wp-admin/edit.php3.36 ▲0.0047.70 ▲1.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.02 ▼11.04
Media Library /wp-admin/upload.php3.23 ▲0.0034.96 ▲0.78

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Capitalized Titles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.031.91 ▼0.0843.51 ▼1.15
Dashboard /wp-admin2,206 ▲154.86 ▼1.02108.03 ▲5.6538.48 ▼1.41
Posts /wp-admin/edit.php2,092 ▲62.06 ▲0.0639.57 ▼0.0735.03 ▼4.19
Add New Post /wp-admin/post-new.php1,535 ▲1523.24 ▲0.27649.58 ▲39.2451.65 ▼2.91
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0196.82 ▼6.0742.73 ▼3.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/capitalized-wp-titles/capitalized-wp-titles.php:57

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Example of capitalized title) image missing
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

capitalized-wp-titles/capitalized-wp-titles.php Passed 13 tests

The entry point to "WP Capitalized Titles" version 1.0 is a PHP file that has certain tags in its header comment area
103 characters long description:
This is plugin will convert all your post and page titles into capitalized word format, Buzzfeed style.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP135227

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin