90% wp-title-case

Code Review | WP Title Case

WordPress plugin WP Title Case scored90%from 54 tests.

About plugin

  • Plugin page: wp-title-case
  • Plugin version: 15.01.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Sep 6, 2010
  • Latest release: Jan 17, 2016
  • Number of updates: 27
  • Update frequency: every 74.0 days
  • Top authors: christopherross (92.59%)phillcoxon (11.11%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /7,864 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.63ms] Passed 4 tests

An overview of server-side resources used by WP Title Case
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.78 ▼0.14
Dashboard /wp-admin3.37 ▲0.0746.14 ▼1.45
Posts /wp-admin/edit.php3.49 ▲0.1348.49 ▲1.41
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.60 ▲2.68
Media Library /wp-admin/upload.php3.30 ▲0.0638.23 ▲5.27

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

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

Browser metrics Passed 4 tests

WP Title Case: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.161.64 ▼0.0741.45 ▼3.51
Dashboard /wp-admin2,206 ▲185.85 ▲0.99108.52 ▲5.2943.25 ▲4.19
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0439.94 ▲2.4534.87 ▲1.89
Add New Post /wp-admin/post-new.php1,547 ▲1418.52 ▼4.58599.27 ▼90.4958.72 ▼9.16
Media Library /wp-admin/upload.php1,388 ▼04.17 ▲0.0194.94 ▼15.1941.22 ▼1.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: uppercase, the_title, titlecase, titles, title...

wp-title-case/wp-title-case.php 92% from 13 tests

The main file in "WP Title Case" v. 15.01.01 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin390 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3169226239
PO File24076120
CSS121631

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.50
▷ Minimum class complexity8.00
▷ Maximum class complexity17.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin