90% awesome-shortcodes

Code Review | Awesome Shortcodes

WordPress plugin Awesome Shortcodes scored90%from 54 tests.

About plugin

  • Plugin page: awesome-shortcodes
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 28, 2017
  • Latest release: Nov 28, 2022
  • Number of updates: 38
  • Update frequency: every 49.7 days
  • Top authors: algoritmika (97.37%)wpcodefactory (5.26%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,813 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 gracefully, with no errors

Server metrics [RAM: ▲0.47MB] [CPU: ▼2.01ms] Passed 4 tests

A check of server-side resources used by Awesome Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4740.08 ▼3.63
Dashboard /wp-admin3.81 ▲0.5152.76 ▲8.10
Posts /wp-admin/edit.php3.86 ▲0.5152.29 ▲3.32
Add New Post /wp-admin/post-new.php6.33 ▲0.4495.29 ▼11.81
Media Library /wp-admin/upload.php3.67 ▲0.4438.25 ▲4.08
Awesome Shortcodes /wp-admin/options-general.php?page=awesome-shortcodes3.6434.09

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
alg_awesome_shortcodes_version
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.141.73 ▼0.4542.93 ▼5.45
Dashboard /wp-admin2,213 ▲284.84 ▼1.01108.42 ▼10.5336.73 ▼14.47
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0541.06 ▲0.7436.91 ▼1.11
Add New Post /wp-admin/post-new.php1,536 ▲823.30 ▲4.79627.43 ▲28.8059.13 ▼0.33
Media Library /wp-admin/upload.php1,392 ▲14.25 ▼0.15102.81 ▲3.3641.58 ▼4.13
Awesome Shortcodes /wp-admin/options-general.php?page=awesome-shortcodes8062.0324.5926.65

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 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • alg_awesome_shortcodes_version
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: awesome, shortcode, shortcodes

awesome-shortcodes/awesome-shortcodes.php Passed 13 tests

The primary PHP file in "Awesome Shortcodes" version 1.7.0 is used by WordPress to initiate all plugin functionality
19 characters long description:
Awesome shortcodes.

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
Success! There were no dangerous files found in this plugin10,517 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS43252,376
PHP111576911,881
Sass1434341,768
LESS1434441,758
JavaScript432663

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity18.33
▷ Minimum class complexity4.00
▷ Maximum class complexity52.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods82
▷ Static methods11.22%
▷ Public methods7996.34%
▷ Protected methods00.00%
▷ Private methods33.66%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin