84% frontpage-title-meta-description

Code Review | Wordpress SEO plugin: Front page title & meta description

WordPress plugin Wordpress SEO plugin: Front page title & meta description scored84%from 54 tests.

About plugin

  • Plugin page: frontpage-title-m...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 25, 2015
  • Latest release: Apr 26, 2015
  • Number of updates: 10
  • Update frequency: every 8.7 days
  • Top authors: AntonHoelstad (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,577 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.09ms] Passed 4 tests

Server-side resources used by Wordpress SEO plugin: Front page title & meta description
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.06 ▼2.66
Dashboard /wp-admin3.32 ▼0.0353.89 ▼8.33
Posts /wp-admin/edit.php3.37 ▲0.0148.23 ▲1.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.77 ▼14.84
Media Library /wp-admin/upload.php3.24 ▲0.0140.75 ▲6.15
Title Meta Settings /wp-admin/options-general.php?page=frontpage-title-meta-description/index.php3.2139.43

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress SEO plugin: Front page title & meta description
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.27 ▼0.081.95 ▲0.0944.57 ▲5.11
Dashboard /wp-admin2,196 ▲165.56 ▼0.0788.50 ▼7.7039.12 ▼4.70
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0133.73 ▼4.6433.00 ▼7.02
Add New Post /wp-admin/post-new.php1,533 ▲523.42 ▲0.27678.22 ▼20.2356.10 ▲6.14
Media Library /wp-admin/upload.php1,407 ▲164.23 ▼0.15109.77 ▲6.1241.43 ▼2.26
Title Meta Settings /wp-admin/options-general.php?page=frontpage-title-meta-description/index.php8022.1525.3226.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontpage-title-meta-description/index.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: on page seo, meta description, title, frontpage, seo

frontpage-title-meta-description/index.php 92% from 13 tests

"Wordpress SEO plugin: Front page title & meta description" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("frontpage-title-meta-description.php" instead of "index.php")

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

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin