83% extended-title-remover

Code Review | Extended Title Remover

WordPress plugin Extended Title Remover scored83%from 54 tests.

About plugin

  • Plugin page: extended-title-re...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2019
  • Latest release: Dec 13, 2022
  • Number of updates: 13
  • Update frequency: every 102.2 days
  • Top authors: amit5204 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /17,305 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Extended Title Remover
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.64 ▼2.43
Dashboard /wp-admin3.32 ▲0.0252.05 ▲0.99
Posts /wp-admin/edit.php3.37 ▲0.0249.51 ▲1.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.62 ▼20.16
Media Library /wp-admin/upload.php3.24 ▲0.0234.18 ▲0.39
Extended Title Remover /wp-admin/options-general.php?page=etr-setting-admin3.2132.14

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Extended Title Remover: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.071.74 ▲0.0249.02 ▲8.93
Dashboard /wp-admin2,199 ▲255.55 ▲0.0188.95 ▼0.8739.99 ▼1.10
Posts /wp-admin/edit.php2,101 ▲12.01 ▼0.0236.93 ▼1.2733.38 ▼3.20
Add New Post /wp-admin/post-new.php6,238 ▲4,70321.36 ▲2.88924.28 ▲281.6073.15 ▲10.98
Media Library /wp-admin/upload.php1,395 ▼24.17 ▼0.0298.70 ▼2.5744.09 ▲1.71
Extended Title Remover /wp-admin/options-general.php?page=etr-setting-admin8271.9923.9228.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/extended-title-remover/extended-title-remover.php:22

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

readme.txt 94% 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
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

extended-title-remover/extended-title-remover.php 85% from 13 tests

This is the main PHP file of "Extended Title Remover" version 1..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin147 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12752147

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity10.00
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin