93% title-to-titletag

Code Review | Title to Titletag

WordPress plugin Title to Titletag scored 93% from 54 tests.

About plugin

  • Plugin page: title-to-titletag
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.8.1
  • WordPress version: 5.8.1
  • First release: May 11, 2021
  • Latest release: Sep 13, 2021
  • Number of updates: 18
  • Update frequency: every 7.3 days
  • Top authors: workbenchwtf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 113 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Title to Titletag
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.04 ▲10.27
Dashboard /wp-admin3.06 ▲0.0139.01 ▼1.88
Posts /wp-admin/edit.php3.11 ▲0.0143.77 ▲0.89
Add New Post /wp-admin/post-new.php5.42 ▼0.0184.23 ▼557.35
Media Library /wp-admin/upload.php3.00 ▲0.0031.10 ▼1.17

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Title to Titletag
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.31 ▲0.858.18 ▼2.6742.99 ▼5.67
Dashboard /wp-admin2,967 ▲336.09 ▲0.11133.51 ▼14.93115.07 ▲7.72
Posts /wp-admin/edit.php2,739 ▲32.68 ▼0.0170.69 ▲6.8592.59 ▲5.83
Add New Post /wp-admin/post-new.php1,500 ▼18318.76 ▲0.05368.31 ▼12.96102.28 ▲2.29
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.01154.81 ▼0.50115.58 ▼4.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/title-to-titletag/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Requires php: Invalid plugin version format
You can look at the official readme.txt

title-to-titletag/title-to-titletag.php 85% from 13 tests

The main file in "Title to Titletag" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin74 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2161347
PO File122645027

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin