83% clean-protected-and-private-page-titles

Code Review | Clean Protected and Private Page Titles

WordPress plugin Clean Protected and Private Page Titles scored83%from 54 tests.

About plugin

  • Plugin page: clean-protected-a...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2014
  • Latest release: Aug 25, 2015
  • Number of updates: 5
  • Update frequency: every 68.2 days
  • Top authors: peckjon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.37MB] [CPU: ▼22.43ms] Passed 4 tests

Analyzing server-side resources used by Clean Protected and Private Page Titles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0431.08 ▼12.32
Dashboard /wp-admin3.24 ▼0.0637.40 ▼11.17
Posts /wp-admin/edit.php3.28 ▼0.0839.79 ▼15.07
Add New Post /wp-admin/post-new.php4.60 ▼1.2941.97 ▼51.16
Media Library /wp-admin/upload.php3.23 ▲0.0033.90 ▼1.52

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Clean Protected and Private Page Titles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.67 ▼0.951.82 ▲0.0838.74 ▼10.98
Dashboard /wp-admin2,203 ▲125.80 ▲0.9196.83 ▼5.1540.35 ▲0.80
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0241.93 ▼0.1734.60 ▼2.17
Add New Post /wp-admin/post-new.php1,542 ▲2318.36 ▼5.07605.00 ▼89.5272.78 ▲17.03
Media Library /wp-admin/upload.php1,391 ▼04.23 ▼0.0193.85 ▼8.8542.09 ▼7.75

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/clean-protected-and-private-page-titles/cleantitles.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Before), #2 (After)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === clean-protected-and-private-page-titles === )
Please take inspiration from this readme.txt

clean-protected-and-private-page-titles/cleantitles.php 92% from 13 tests

Analyzing the main PHP file in "Clean Protected and Private Page Titles" version 0.1
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("clean-protected-and-private-page-titles.php" instead of "cleantitles.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
Good job! No executable or dangerous file extensions detected5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14215

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.04MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png23.38KB24.50KB0.00%
screenshot-2.png22.00KB22.79KB0.00%