89% super-simple-shortcodes

Code Review | Super Simple Shortcodes - Create your own Custom Shortcodes for Contact Info & More

WordPress plugin Super Simple Shortcodes - Create your own Custom Shortcodes for Contact Info & More scored89%from 54 tests.

About plugin

  • Plugin page: super-simple-shor...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2023
  • Latest release: Feb 7, 2023
  • Number of updates: 17
  • Update frequency: every 1.2 days
  • Top authors: wrdstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /144 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.54MB] [CPU: ▼9.03ms] Passed 4 tests

This is a short check of server-side resources used by Super Simple Shortcodes - Create your own Custom Shortcodes for Contact Info & More
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.52 ▲4.03
Dashboard /wp-admin3.37 ▲0.0747.91 ▼4.64
Posts /wp-admin/edit.php3.42 ▲0.0745.89 ▼1.21
Add New Post /wp-admin/post-new.php3.52 ▼2.3759.46 ▼34.28
Media Library /wp-admin/upload.php3.29 ▲0.0655.94 ▲19.37
Custom Shortcodes /wp-admin/edit.php?post_type=wrd_shortcode3.3437.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Super Simple Shortcodes - Create your own Custom Shortcodes for Contact Info & More
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.25 ▼1.131.75 ▼0.0843.10 ▲2.64
Dashboard /wp-admin2,215 ▲364.86 ▼1.00105.91 ▲4.4438.04 ▼4.79
Posts /wp-admin/edit.php2,098 ▲122.06 ▲0.0535.40 ▼0.9332.30 ▼0.47
Add New Post /wp-admin/post-new.php3,160 ▲1,6417.74 ▼15.43174.99 ▼474.8572.82 ▲13.59
Media Library /wp-admin/upload.php1,394 ▲64.17 ▼0.03102.53 ▲3.0142.57 ▼0.40
Custom Shortcodes /wp-admin/edit.php?post_type=wrd_shortcode1,0592.0034.0832.76

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

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
9 plugin tags: tinymce, contact, wysiwyg, content, shortcode...

super-simple-shortcodes/customshortcodes.php 69% from 13 tests

The principal PHP file in "Super Simple Shortcodes - Create your own Custom Shortcodes for Contact Info & More" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires at least: Required version must match the one declared in readme.txt ("5.7" instead of "5.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("super-simple-shortcodes.php" instead of "customshortcodes.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected446 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP142122163
JavaScript2435153
CSS2340130

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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
assets/scripts/shortcode.png2.15KB0.77KB▼ 64.09%