94% custom-title

Code Review | Custom Title

WordPress plugin Custom Title scored 94% from 54 tests.

About plugin

  • Plugin page: custom-title
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.1+
  • WordPress version: 5.9.2
  • First release: Oct 10, 2014
  • Latest release: Aug 16, 2015
  • Number of updates: 16
  • Update frequency: every 19.4 days
  • Top authors: dyuthichand (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active / 16,271 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Custom Title
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0151.10 ▼1.07
Dashboard /wp-admin3.41 ▲0.0131.47 ▼1.39
Posts /wp-admin/edit.php3.65 ▲0.0136.62 ▼0.65
Add New Post /wp-admin/post-new.php6.91 ▼0.0891.78 ▼1,184.70
Media Library /wp-admin/upload.php3.30 ▲0.0025.56 ▲2.25

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Title
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲4115.89 ▲0.115.86 ▲0.352.34 ▲0.34
Dashboard /wp-admin2,888 ▲306.02 ▼0.04116.26 ▼25.20155.94 ▼14.89
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0061.21 ▼6.68134.24 ▼6.84
Add New Post /wp-admin/post-new.php1,593 ▼6817.33 ▲0.87450.04 ▲38.11162.63 ▲7.23
Media Library /wp-admin/upload.php1,689 ▼95.53 ▲0.02140.43 ▲3.20229.51 ▲47.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-title/custom_heading.php:17

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tested up to: Invalid plugin version format
The official readme.txt might help

custom-title/custom_heading.php 92% from 13 tests

Analyzing the main PHP file in "Custom Title" version 2.1
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-title.php" instead of "custom_heading.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1361057

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin