89% enter-title-here-changer

Code Review | Enter Title Here Changer

WordPress plugin Enter Title Here Changer scored89%from 54 tests.

About plugin

  • Plugin page: enter-title-here-...
  • Plugin version: 0.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2019
  • Latest release: Nov 4, 2020
  • Number of updates: 12
  • Update frequency: every 40.4 days
  • Top authors: tremidkhar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /785 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Enter Title Here Changer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.21 ▲0.06
Dashboard /wp-admin3.32 ▼0.0346.10 ▼19.05
Posts /wp-admin/edit.php3.37 ▲0.0145.31 ▼3.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.96 ▼6.09
Media Library /wp-admin/upload.php3.24 ▲0.0134.14 ▼1.40
ETHC Settings /wp-admin/options-general.php?page=ethc-settings3.2530.54

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
ethc_settings
theysaidso_admin_options
ethc_placeholders

Browser metrics Passed 4 tests

A check of browser resources used by Enter Title Here Changer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.505.48 ▲3.5944.48 ▲1.40
Dashboard /wp-admin2,213 ▲314.86 ▼0.95103.59 ▼13.9739.91 ▼4.73
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0334.88 ▼1.0335.95 ▲1.35
Add New Post /wp-admin/post-new.php1,537 ▲723.26 ▲5.01677.46 ▲4.7060.75 ▲5.81
Media Library /wp-admin/upload.php1,392 ▲14.29 ▲0.0596.65 ▼5.6941.97 ▲1.18
ETHC Settings /wp-admin/options-general.php?page=ethc-settings9632.0128.2527.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • ethc_placeholders
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: admin, cpt, custom post types, post

enter-title-here-changer/enter-title-here-changer.php 85% from 13 tests

The main file in "Enter Title Here Changer" v. 0.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin425 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9141317424
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods17
▷ Static methods15.88%
▷ Public methods1482.35%
▷ Protected methods15.88%
▷ Private methods211.76%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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