84% title-tag-everts-simple-version

Code Review | Title Tag, Evert's simple version

WordPress plugin Title Tag, Evert's simple version scored84%from 54 tests.

About plugin

  • Plugin page: title-tag-everts-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.4
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Dec 9, 2015
  • Number of updates: 3
  • Update frequency: every 95.3 days
  • Top authors: evert_mouw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Title Tag, Evert's simple version
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.94 ▼5.47
Dashboard /wp-admin3.31 ▲0.0150.17 ▲4.63
Posts /wp-admin/edit.php3.36 ▲0.0149.95 ▲2.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.74 ▼4.45
Media Library /wp-admin/upload.php3.23 ▲0.0138.44 ▲2.20

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Title Tag, Evert's simple version
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼0.055.10 ▲0.6340.74 ▲0.48
Dashboard /wp-admin2,209 ▲214.86 ▼1.0195.75 ▼3.7038.55 ▼1.44
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0633.96 ▼7.2334.06 ▼2.18
Add New Post /wp-admin/post-new.php1,542 ▲1818.06 ▼5.13613.85 ▼31.9550.40 ▼11.14
Media Library /wp-admin/upload.php1,391 ▲94.24 ▲0.0399.30 ▲0.3343.59 ▼0.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/title-tag-everts-simple-version/use_in_theme/header.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/title-tag-everts-simple-version/functions.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/title-tag-everts-simple-version/functions.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (Result: Page title and Site name in a Firefox window.) image not found
Please take inspiration from this readme.txt

title-tag-everts-simple-version/title-tag-evert.php 92% from 13 tests

The principal PHP file in "Title Tag, Evert's simple version" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("title-tag-everts-simple-version.php" instead of "title-tag-evert.php")

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
No dangerous file extensions were detected20 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3111220

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.55
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
assets/screenshot-1.png6.19KB3.23KB▼ 47.89%