83% autoshortcode

Code Review | autoshortcoder

WordPress plugin autoshortcoder scored 83% from 54 tests.

About plugin

  • Plugin page: autoshortcode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 5.8.1
  • First release: May 25, 2016
  • Latest release: May 25, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: nextime (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 502 total downloads


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.07MB] [CPU: ▼149.64ms] Passed 4 tests

This is a short check of server-side resources used by autoshortcoder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1932.21 ▲10.58
Dashboard /wp-admin3.17 ▲0.1246.70 ▼0.63
Posts /wp-admin/edit.php3.28 ▲0.1744.99 ▲0.05
Add New Post /wp-admin/post-new.php4.76 ▼0.6858.55 ▼600.63
Media Library /wp-admin/upload.php3.11 ▲0.1135.46 ▲2.66
Autoshortcode /wp-admin/options-general.php?page=autoshortcoder_settings3.0830.72

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for autoshortcoder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,712 ▲11615.89 ▲0.059.73 ▲0.6444.13 ▼2.72
Dashboard /wp-admin2,976 ▲425.89 ▼0.07132.14 ▼16.93111.87 ▼6.53
Posts /wp-admin/edit.php2,733 ▼62.59 ▼0.1165.31 ▼10.2490.02 ▼3.63
Add New Post /wp-admin/post-new.php1,883 ▲38319.27 ▲0.37388.32 ▲20.24107.29 ▼5.22
Media Library /wp-admin/upload.php1,742 ▼685.02 ▲0.00145.99 ▼6.55118.42 ▲1.76
Autoshortcode /wp-admin/options-general.php?page=autoshortcoder_settings1,0572.0960.2974.58

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • autoshortcoder_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=autoshortcoder_settings
    • > Network (severe)
    wp-content/plugins/autoshortcode/assets/js/admin.min.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=autoshortcoder_settings
    • > Network (severe)
    wp-content/plugins/autoshortcode/assets/js/settings.min.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: wordpress, plugin, shortcodes

autoshortcode/autoshortcoder.php 69% from 13 tests

The primary PHP file in "autoshortcoder" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("autoshortcode.php" instead of "autoshortcoder.php")
  • Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
  • Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin452 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity32.33
▷ Minimum class complexity13.00
▷ Maximum class complexity61.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods26.90%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin