90% shortcode-alias-api

Code Review | Shortcode Alias API

WordPress plugin Shortcode Alias API scored90%from 54 tests.

About plugin

  • Plugin page: shortcode-alias-api
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Oct 22, 2018
  • Number of updates: 16
  • Update frequency: every 94.1 days
  • Top authors: aaemnnosttv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /757 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.73ms] Passed 4 tests

This is a short check of server-side resources used by Shortcode Alias API
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.74 ▼4.16
Dashboard /wp-admin3.33 ▼0.0148.77 ▼16.39
Posts /wp-admin/edit.php3.45 ▲0.0950.90 ▼1.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.53 ▼16.43
Media Library /wp-admin/upload.php3.26 ▲0.0337.93 ▲0.51

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Shortcode Alias API
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.101.96 ▲0.3041.82 ▼2.20
Dashboard /wp-admin2,198 ▲215.58 ▼0.0387.92 ▼3.7539.34 ▼9.91
Posts /wp-admin/edit.php2,097 ▼32.03 ▼0.0033.88 ▼1.6432.21 ▼6.19
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.03593.21 ▼90.6754.56 ▼18.88
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.04102.04 ▼3.6745.65 ▼0.16

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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: shortcodes, shortcode, shortcode aliases

shortcode-alias-api/shortcode-alias-api.php Passed 13 tests

This is the main PHP file of "Shortcode Alias API" version 0.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
34 characters long description:
A plugin for shortcode awesomeness

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin182 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP468193182

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.00
▷ Minimum class complexity8.00
▷ Maximum class complexity14.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1173.33%
▷ Protected methods426.67%
▷ 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin