83% wp-page-title-with-icon

Code Review | WP Page Title With Icon

WordPress plugin WP Page Title With Icon scored83%from 54 tests.

About plugin

  • Plugin page: wp-page-title-wit...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 6.3.1
  • First release: Oct 1, 2015
  • Latest release: Feb 2, 2022
  • Number of updates: 15
  • Update frequency: every 154.5 days
  • Top authors: vidya_l (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,229 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.05ms] Passed 4 tests

Server-side resources used by WP Page Title With Icon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.72 ▼10.20
Dashboard /wp-admin3.33 ▲0.0342.21 ▼4.57
Posts /wp-admin/edit.php3.38 ▲0.0345.93 ▲1.49
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.67 ▼2.91
Media Library /wp-admin/upload.php3.26 ▲0.0336.01 ▲1.66

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Page Title With Icon: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.38 ▼0.881.83 ▼0.4544.48 ▼11.82
Dashboard /wp-admin2,226 ▲385.14 ▼0.72103.62 ▼13.2739.90 ▼4.32
Posts /wp-admin/edit.php2,123 ▲342.36 ▲0.3541.86 ▼0.8236.45 ▲3.05
Add New Post /wp-admin/post-new.php9,636 ▲8,09425.20 ▲6.77994.48 ▲350.3145.59 ▼7.82
Media Library /wp-admin/upload.php1,420 ▲414.46 ▲0.2597.93 ▲1.1341.26 ▼1.83

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

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
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-page-title-with-icon/wp-page-title-icon.php
    • > /wp-content/plugins/wp-page-title-with-icon/admin/functions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Screenshot showing WordPress admin area), #2 (Screenshot showing icon in Front End)
Please take inspiration from this readme.txt

wp-page-title-with-icon/wp-page-title-icon.php 85% from 13 tests

The main PHP script in "WP Page Title With Icon" version 1.1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-page-title-with-icon.php" instead of "wp-page-title-icon.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,785 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2210976
SVG100640
PHP24435112
CSS331257

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png42.69KB9.11KB▼ 78.67%
screenshot-1.png52.31KB14.33KB▼ 72.60%
Screenshot 2019-02-28 at 2.30.11 PM.png52.31KB14.33KB▼ 72.60%