83% disable-title

Code Review | Disable Title

WordPress plugin Disable Title scored83%from 54 tests.

About plugin

  • Plugin page: disable-title
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 29, 2012
  • Latest release: Sep 13, 2014
  • Number of updates: 38
  • Update frequency: every 17.2 days
  • Top authors: f.staude (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

4,000+ active /62,045 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.32ms] Passed 4 tests

Analyzing server-side resources used by Disable Title
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.76 ▲1.99
Dashboard /wp-admin3.38 ▲0.0846.02 ▼5.04
Posts /wp-admin/edit.php3.49 ▲0.1449.15 ▼4.07
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.63 ▼1.03
Media Library /wp-admin/upload.php3.30 ▲0.0732.77 ▲0.86

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Title
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.041.67 ▼0.0741.41 ▼2.54
Dashboard /wp-admin2,206 ▲145.86 ▲0.71106.74 ▼1.3941.99 ▼2.66
Posts /wp-admin/edit.php2,086 ▼62.01 ▲0.0240.62 ▲2.5335.50 ▼0.35
Add New Post /wp-admin/post-new.php6,312 ▲4,77919.36 ▼3.61825.87 ▲195.8651.68 ▲3.20
Media Library /wp-admin/upload.php1,388 ▲64.28 ▲0.0897.00 ▼2.5342.29 ▼1.97

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/disable-title/disable-title.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The settings dialog) image missing
The official readme.txt is a good inspiration

disable-title/disable-title.php 77% from 13 tests

The main PHP script in "Disable Title" version 0.9 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

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 detected247 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23083153
PO File2286894

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods888.89%
▷ Public methods9100.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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png8.56KB3.76KB▼ 56.11%