89% unstitched-shortcode

Code Review | Unstitched Shortcode

WordPress plugin Unstitched Shortcode scored 89% from 54 tests.

About plugin

  • Plugin page: unstitched-shortcode
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.5.1
  • WordPress version: 5.8.1
  • First release: Jul 16, 2019
  • Latest release: Jul 17, 2019
  • Number of updates: 2
  • Update frequency: every 7.0 days
  • Top authors: unstitchedxyz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 246 total downloads

Benchmarks

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
Install script ran successfully

Server metrics [RAM: ▼1.89MB] [CPU: ▼198.01ms] Passed 4 tests

A check of server-side resources used by Unstitched Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.986.03 ▼15.17
Dashboard /wp-admin1.76 ▼1.296.73 ▼47.77
Posts /wp-admin/edit.php1.76 ▼1.354.48 ▼43.15
Add New Post /wp-admin/post-new.php1.76 ▼3.675.29 ▼675.31
Media Library /wp-admin/upload.php1.76 ▼1.246.56 ▼25.81

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Unstitched Shortcode: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11316.02 ▲0.0613.55 ▲0.9354.12 ▲1.12
Dashboard /wp-admin2,969 ▲355.95 ▼0.21149.59 ▲2.13121.48 ▼4.72
Posts /wp-admin/edit.php2,741 ▲22.71 ▼0.1468.79 ▼5.9290.35 ▼7.72
Add New Post /wp-admin/post-new.php1,502 ▼55518.53 ▼0.77364.39 ▼29.12118.47 ▲3.49
Media Library /wp-admin/upload.php1,809 ▼15.03 ▲0.01151.37 ▼25.42121.33 ▼11.29

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
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the customjs handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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)
The smoke test was a success, however most plugin functionality was not tested

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
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
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

unstitched-shortcode/unstitched-shortcode.php 92% from 13 tests

This is the main PHP file of "Unstitched Shortcode" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 168 characters long)

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
There were no executable files found in this plugin1,160 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1191391,116
PHP2172744

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin