84% insert-title

Code Review | Insert Title

WordPress plugin Insert Title scored84%from 54 tests.

About plugin

  • Plugin page: insert-title
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Jul 5, 2017
  • Latest release: Jul 5, 2017
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: jatthira (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Insert Title
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.39 ▼4.57
Dashboard /wp-admin3.32 ▲0.0150.14 ▲0.68
Posts /wp-admin/edit.php3.37 ▲0.0149.10 ▲3.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.33 ▼7.52
Media Library /wp-admin/upload.php3.24 ▲0.0145.31 ▲8.96

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

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

Browser metrics Passed 4 tests

Insert Title: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.18 ▼1.101.62 ▼0.0639.31 ▲1.00
Dashboard /wp-admin2,218 ▲304.87 ▼0.05103.57 ▼1.6241.59 ▼1.57
Posts /wp-admin/edit.php2,098 ▲121.99 ▲0.0137.21 ▲1.2236.21 ▲3.60
Add New Post /wp-admin/post-new.php1,526 ▼717.62 ▼5.67696.47 ▼33.9051.17 ▼5.43
Media Library /wp-admin/upload.php1,397 ▲154.18 ▼0.0695.63 ▼3.3146.84 ▲0.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/insert-title/ut-insert-title.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: insert title, pages, title, html, insert...

insert-title/ut-insert-title.php 85% from 13 tests

The primary PHP file in "Insert Title" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("insert-title.php" instead of "ut-insert-title.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 274 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1171556
JavaScript18316

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions6
▷ Named functions6100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
data/btn.png2.88KB0.20KB▼ 93.16%