84% wp-seo-title

Code Review | WP SEO Title

WordPress plugin WP SEO Title scored84%from 54 tests.

About plugin

  • Plugin page: wp-seo-title
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2015
  • Latest release: Apr 2, 2015
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: nicolasmarin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,344 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.44ms] Passed 4 tests

Server-side resources used by WP SEO Title
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.30 ▲0.85
Dashboard /wp-admin3.34 ▲0.0450.22 ▼4.01
Posts /wp-admin/edit.php3.39 ▲0.0451.80 ▲2.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.70 ▼12.78
Media Library /wp-admin/upload.php3.27 ▲0.0436.80 ▼1.83

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 273 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
wpst_order
wpst_country_selected
wpst_countries
wpst_value
widget_recent-comments
widget_recent-posts
db_upgraded
wpst_api_key
...

Browser metrics Passed 4 tests

A check of browser resources used by WP SEO Title
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.53 ▲0.161.90 ▲0.1346.89 ▲1.42
Dashboard /wp-admin2,195 ▲215.56 ▼0.0694.31 ▲3.7776.00 ▲34.23
Posts /wp-admin/edit.php2,112 ▲122.03 ▲0.0135.65 ▼2.2437.05 ▲1.61
Add New Post /wp-admin/post-new.php1,554 ▲2622.94 ▼0.27670.64 ▼24.5135.31 ▼18.74
Media Library /wp-admin/upload.php1,415 ▲154.15 ▼0.08105.09 ▼4.9768.06 ▲20.41

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
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-seo-title/inc/wpst-admin.php
    • > /wp-content/plugins/wp-seo-title/wp-seo-title.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Enter a keyword for suggest) image missing
The official readme.txt is a good inspiration

wp-seo-title/wp-seo-title.php 92% from 13 tests

This is the main PHP file of "WP SEO Title" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 331 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,224 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32516475
CSS31516342
PHP44912331
PO File1303276

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1184.62%
▷ Protected methods215.38%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
254 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/png/mo.png0.57KB0.71KB0.00%
images/png/pr.png0.54KB0.71KB0.00%
images/png/um.png0.56KB0.63KB0.00%
images/flags/au.png0.66KB0.75KB0.00%
images/flags/dk.png0.48KB0.61KB0.00%