90% admin-title-check

Code Review | Admin Title Check

WordPress plugin Admin Title Check scored90%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: 6.3.1
  • 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 /990 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Admin Title Check
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.82 ▼1.75
Dashboard /wp-admin3.32 ▲0.0145.36 ▼7.64
Posts /wp-admin/edit.php3.37 ▲0.0150.72 ▲0.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.46 ▼2.77
Media Library /wp-admin/upload.php3.24 ▲0.0134.43 ▲1.52

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Admin Title Check
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.121.77 ▲0.0542.04 ▼0.48
Dashboard /wp-admin2,203 ▲155.88 ▲0.97106.66 ▼8.6642.78 ▼0.65
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0139.10 ▲0.6134.09 ▲0.68
Add New Post /wp-admin/post-new.php1,526 ▼723.22 ▲0.44632.55 ▲51.5051.73 ▲3.00
Media Library /wp-admin/upload.php1,382 ▼04.21 ▲0.0596.02 ▼6.5941.09 ▼2.90

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: post, autocomplete, duplicate, title, admin...

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

The entry point to "Admin Title Check" version 1.0.1 is a PHP file that has certain tags in its header comment area
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin214 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27259214

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin