84% post-title-formatter

Code Review | Post Title Formatter

WordPress plugin Post Title Formatter scored84%from 54 tests.

About plugin

  • Plugin page: post-title-formatter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Jun 12, 2017
  • Latest release: Jun 12, 2017
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: getgoodgrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /729 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.54ms] Passed 4 tests

Analyzing server-side resources used by Post Title Formatter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.06 ▼3.24
Dashboard /wp-admin3.32 ▲0.0143.25 ▼2.92
Posts /wp-admin/edit.php3.37 ▲0.0143.45 ▼3.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.10 ▲1.78
Media Library /wp-admin/upload.php3.24 ▲0.0133.89 ▼0.72

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Post Title Formatter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.111.72 ▼0.3642.28 ▼3.37
Dashboard /wp-admin2,206 ▲145.83 ▲0.8599.15 ▼23.8939.89 ▼1.81
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0538.85 ▲0.9336.15 ▲1.02
Add New Post /wp-admin/post-new.php1,537 ▼023.22 ▼0.30653.10 ▼30.3457.81 ▲3.67
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0296.69 ▼2.8642.33 ▼5.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/post-title-formatter/post-title-content-reformatter.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: title, post, blog, formatter

post-title-formatter/post-title-content-reformatter.php 92% from 13 tests

"Post Title Formatter" version 1.0'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:
  • Main file name: Name the main plugin file the same as the plugin slug ("post-title-formatter.php" instead of "post-title-content-reformatter.php")

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
There were no executable files found in this plugin37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1183937

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There are no PNG files in this plugin