79% tdlm-title-case

Code Review | TDLM Title Case

WordPress plugin TDLM Title Case scored79%from 54 tests.

About plugin

  • Plugin page: tdlm-title-case
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.2.2
  • WordPress version: 6.3.1
  • First release: May 21, 2015
  • Latest release: May 21, 2015
  • Number of updates: 14
  • Update frequency: every 2.6 days
  • Top authors: scottmweaver (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,217 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.20ms] Passed 4 tests

A check of server-side resources used by TDLM Title Case
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.66 ▲1.40
Dashboard /wp-admin3.34 ▼0.0143.13 ▼19.05
Posts /wp-admin/edit.php3.39 ▲0.0345.23 ▼2.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.73 ▼11.00
Media Library /wp-admin/upload.php3.26 ▲0.0332.60 ▼0.68

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

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

Browser metrics Passed 4 tests

Checking browser requirements for TDLM Title Case
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.25 ▼0.101.76 ▲0.1042.10 ▲0.56
Dashboard /wp-admin2,199 ▲225.59 ▼0.0285.52 ▼2.8838.14 ▼2.05
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0134.28 ▲0.1932.54 ▲2.76
Add New Post /wp-admin/post-new.php1,531 ▼623.27 ▲4.91663.22 ▲50.9260.26 ▼5.81
Media Library /wp-admin/upload.php1,404 ▲14.18 ▼0.03101.95 ▲5.0744.83 ▼4.28
TDLM Title Case /wp-admin/tdlm-title-case.php260.420.1114.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tdlm-title-case/tdlm-title-case.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/tdlm-title-case.php
    • > Network (severe)
    wp-admin/tdlm-title-case.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: title case, title, titlecase

tdlm-title-case/tdlm-title-case.php Passed 13 tests

Analyzing the main PHP file in "TDLM Title Case" version 1.0.1
79 characters long description:
Change your post title to correct title case or all lowercase or all uppercase.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected173 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14693173

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions20
▷ Named functions1890.00%
▷ Anonymous functions210.00%
Constants0
▷ Global constants00.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
No PNG files were detected