73% page-title-customizer-for-twenty-series

Code Review | Page Title Customizer for Twenty series

WordPress plugin Page Title Customizer for Twenty series scored73%from 54 tests.

About plugin

  • Plugin page: page-title-custom...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Oct 12, 2019
  • Latest release: Nov 18, 2019
  • Number of updates: 30
  • Update frequency: every 1.3 days
  • Top authors: kazukiyanamoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /761 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.11MB] [CPU: ▼11.07ms] Passed 4 tests

A check of server-side resources used by Page Title Customizer for Twenty series
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0337.21 ▼18.61
Dashboard /wp-admin3.33 ▲0.0356.56 ▲2.87
Posts /wp-admin/edit.php3.38 ▼0.4655.55 ▼10.80
Add New Post /wp-admin/post-new.php5.91 ▲0.02107.74 ▼17.17
Media Library /wp-admin/upload.php3.25 ▲0.0240.83 ▲2.29
Page Title setting /wp-admin/options-general.php?page=page_title_customizer_admin_menu3.3232.26

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Page Title Customizer for Twenty series
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16413.64 ▼0.636.91 ▲4.7547.56 ▼2.35
Dashboard /wp-admin2,210 ▲255.86 ▲0.05107.54 ▼24.4040.69 ▼7.45
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0043.77 ▼1.9237.52 ▼1.85
Add New Post /wp-admin/post-new.php6,477 ▲4,94919.21 ▼3.55974.78 ▲325.9287.08 ▲33.95
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.03108.33 ▼5.3650.66 ▼1.29
Page Title setting /wp-admin/options-general.php?page=page_title_customizer_admin_menu9322.0632.5129.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, no array or string given
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=page_title_customizer_admin_menu
    • > Notice in wp-content/plugins/page-title-customizer-for-twenty-series/manage/admin.php+19
    Undefined index: Page_Title_save

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 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
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === page-title-customizer-for-twenty-series === )
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 ("Posts" and "Pages" edit page), #2 ("Posts" and "Pages" edit page), #3 ("Page Title setting" Settings page)
You can look at the official readme.txt

page-title-customizer-for-twenty-series/page-title-customizer.php 85% from 13 tests

"Page Title Customizer for Twenty series" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("page-title-customizer-for-twenty-series.php" instead of "page-title-customizer.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 214 characters long)

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
No dangerous file extensions were detected636 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP14170111636

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png46.69KB18.54KB▼ 60.30%
screenshot-2.png39.09KB17.58KB▼ 55.03%
screenshot-1.png39.48KB19.09KB▼ 51.64%