83% capitalize-my-title

Code Review | Capitalize My Title WordPress Plugin

WordPress plugin Capitalize My Title WordPress Plugin scored83%from 54 tests.

About plugin

  • Plugin page: capitalize-my-title
  • Plugin version: 0.5.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2014
  • Latest release: Nov 9, 2022
  • Number of updates: 74
  • Update frequency: every 41.1 days
  • Top authors: bobbykania (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,071 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.08MB] [CPU: ▼7.79ms] Passed 4 tests

Server-side resources used by Capitalize My Title WordPress Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0734.41 ▼5.56
Dashboard /wp-admin3.38 ▲0.0842.83 ▼10.27
Posts /wp-admin/edit.php3.50 ▲0.1447.49 ▼2.90
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.89 ▼12.44
Media Library /wp-admin/upload.php3.30 ▲0.0836.82 ▲2.66

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
title_styles
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Capitalize My Title WordPress Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.47 ▲0.101.68 ▼0.2338.97 ▼6.37
Dashboard /wp-admin2,224 ▲365.80 ▼0.0699.34 ▼18.7972.49 ▲27.59
Posts /wp-admin/edit.php2,135 ▲466.97 ▲4.8169.61 ▲30.1536.06 ▼1.95
Add New Post /wp-admin/post-new.php6,476 ▲4,94833.62 ▲10.471,031.68 ▲363.2156.31 ▼4.98
Media Library /wp-admin/upload.php1,406 ▲184.19 ▲0.06104.37 ▼10.0543.95 ▼3.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • title_styles
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/capitalize-my-title/inc/post.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/capitalize-my-title/inc/settings.php:202
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/capitalize-my-title/inc/admin.php:13

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Capitalize your titles and headings in posts and pages.), #2 (Select which style you want to use for each header.), #3 ([Premium] Use keyboard shorts to capitalize your titles.), #4 ([Premium] Bulk update all headers and titles.)
The official readme.txt might help

capitalize-my-title/capitalize-my-title.php 85% from 13 tests

"Capitalize My Title WordPress Plugin" version 0.5.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,357 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG2005,035
CSS35829916
JavaScript615644594
LESS15810448
PHP516176364

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods872.73%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
5 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png30.37KB14.83KB▼ 51.17%
images/cmt-icon-16x16.png0.77KB0.25KB▼ 68.14%
screenshot-2.png25.08KB11.63KB▼ 53.62%
screenshot-3.png61.05KB32.03KB▼ 47.53%
screenshot-1.png99.92KB41.02KB▼ 58.95%