100% admin-title-check

Code Review | Admin Title Check

WordPress plugin Admin Title Check scored 100% from 54 tests.

About plugin

  • Plugin page: admin-title-check
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.9.2
  • First release: Jun 27, 2017
  • Latest release: Oct 29, 2021
  • Number of updates: 6
  • Update frequency: every 264.3 days
  • Top authors: divspark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 690 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 gracefully, with no errors

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

Analyzing server-side resources used by Admin Title Check
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0371.64 ▲14.77
Dashboard /wp-admin3.45 ▲0.0538.68 ▼0.25
Posts /wp-admin/edit.php3.68 ▲0.0445.26 ▲2.39
Add New Post /wp-admin/post-new.php6.91 ▼0.0597.71 ▼1,154.89
Media Library /wp-admin/upload.php3.33 ▲0.0327.45 ▲1.72

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Admin Title Check
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2715.91 ▲0.2010.27 ▲4.722.60 ▲0.07
Dashboard /wp-admin2,881 ▲276.10 ▼0.15116.97 ▼18.54158.48 ▼4.63
Posts /wp-admin/edit.php2,688 ▼33.24 ▲0.0162.86 ▼5.98134.42 ▼5.01
Add New Post /wp-admin/post-new.php1,666 ▲516.04 ▼0.69384.26 ▼60.72153.84 ▲2.42
Media Library /wp-admin/upload.php1,701 ▼05.54 ▲0.04138.34 ▼0.16194.16 ▲11.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: backend, matching, duplicate, post, check...

admin-title-check/admin-title-check.php Passed 13 tests

The primary PHP file in "Admin Title Check" version 1.0.1 is used by WordPress to initiate all plugin functionality
104 characters long description:
Checks whether the title has already been used while adding or editing a post, page or custom post type.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin214 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27259214

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
No PNG images were found in this plugin