84% remove-protected-in-title

Code Review | Remove Protected In Title

WordPress plugin Remove Protected In Title scored84%from 54 tests.

About plugin

  • Plugin page: remove-protected-...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.6
  • WordPress version: 6.3.1
  • First release: Jun 29, 2014
  • Latest release: Nov 24, 2020
  • Number of updates: 7
  • Update frequency: every 334.3 days
  • Top authors: dblazeski (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /13,910 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼1.94ms] Passed 4 tests

An overview of server-side resources used by Remove Protected In Title
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.96 ▼7.15
Dashboard /wp-admin3.31 ▲0.0143.11 ▼6.17
Posts /wp-admin/edit.php3.36 ▲0.0047.34 ▲1.82
Add New Post /wp-admin/post-new.php5.89 ▲0.00102.60 ▲14.79
Media Library /wp-admin/upload.php3.24 ▲0.0036.52 ▲3.74

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Protected In Title
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.33 ▼0.951.83 ▼0.0237.71 ▼4.36
Dashboard /wp-admin2,209 ▲184.81 ▼0.07113.45 ▲0.6741.85 ▼2.23
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0533.20 ▼4.8531.74 ▲0.64
Add New Post /wp-admin/post-new.php1,537 ▲923.38 ▲0.41663.10 ▼8.1355.80 ▼1.54
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.10101.32 ▼1.8042.40 ▼1.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remove-protected-in-title/remove-protected-title.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: page title, remove protected, remove private

remove-protected-in-title/remove-protected-title.php 92% from 13 tests

The primary PHP file in "Remove Protected In Title" version 3.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-protected-in-title.php" instead of "remove-protected-title.php")

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 detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1397

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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
There are no PNG files in this plugin