84% shortcode-in-title

Code Review | Shortcode in Title

WordPress plugin Shortcode in Title scored84%from 54 tests.

About plugin

  • Plugin page: shortcode-in-title
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.1
  • WordPress version: 6.3.1
  • First release: Jul 3, 2016
  • Latest release: Jul 3, 2016
  • Number of updates: 2
  • Update frequency: every 27.0 days
  • Top authors: digisphere (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Shortcode in Title
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.47 ▼0.02
Dashboard /wp-admin3.31 ▲0.0049.10 ▼2.27
Posts /wp-admin/edit.php3.36 ▲0.0051.74 ▲2.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.73 ▼12.71
Media Library /wp-admin/upload.php3.23 ▲0.0038.49 ▲6.55

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shortcode in Title
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.62 ▼0.762.22 ▲0.2943.20 ▼3.26
Dashboard /wp-admin2,206 ▲214.84 ▼0.97107.42 ▼2.3842.19 ▲0.51
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0040.83 ▲3.2336.36 ▲1.58
Add New Post /wp-admin/post-new.php1,542 ▲918.42 ▼4.53621.18 ▼9.3657.41 ▲4.47
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.15101.85 ▼13.3244.25 ▼4.11

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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 | 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/shortcode-in-title/shortcode-in-title.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: titl, shortcode

shortcode-in-title/shortcode-in-title.php Passed 13 tests

This is the main PHP file of "Shortcode in Title" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Simple plugin which allows you to add shortcodes to the Title field

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2097

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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 functions00.00%
▷ Anonymous functions1100.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