84% text-tags-shortcode

Code Review | Text Tags Shortcode

WordPress plugin Text Tags Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: text-tags-shortcode
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2018
  • Latest release: Mar 9, 2019
  • Number of updates: 16
  • Update frequency: every 16.1 days
  • Top authors: dsxxx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,105 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
Installer ran successfully

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

A check of server-side resources used by Text Tags Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.75 ▲1.75
Dashboard /wp-admin3.32 ▼0.0343.20 ▼15.93
Posts /wp-admin/edit.php3.37 ▲0.0148.46 ▲0.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.55 ▼4.97
Media Library /wp-admin/upload.php3.24 ▲0.0133.27 ▲0.85

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Text Tags Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.81 ▲0.231.79 ▲0.1647.17 ▲8.68
Dashboard /wp-admin2,206 ▲185.84 ▲0.9696.33 ▼2.5441.18 ▼2.86
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0639.79 ▼1.8834.95 ▼0.38
Add New Post /wp-admin/post-new.php1,514 ▼517.51 ▼5.63669.03 ▲71.5254.98 ▲4.02
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0895.53 ▼3.3043.19 ▼2.88

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/text-tags-shortcode/1.1/text-tags-shortcode.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-tags-shortcode/text-tags-shortcode.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-tags-shortcode/1.2/text-tags-shortcode.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: "Free"
You can look at the official readme.txt

text-tags-shortcode/text-tags-shortcode.php Passed 13 tests

This is the main PHP file of "Text Tags Shortcode" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
Use shortcode to add tags to the text.

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
Good job! No executable or dangerous file extensions detected499 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3109131279
JavaScript378108217
CSS1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions58
▷ Named functions58100.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
There were not PNG files found in your plugin