99% basic-shortcode-elements

Code Review | Basic Shortcode Elements

WordPress plugin Basic Shortcode Elements scored 99% from 54 tests.

About plugin

  • Plugin page: basic-shortcode-e...
  • Plugin version: 1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.2
  • WordPress version: 5.8.1
  • First release: Feb 12, 2018
  • Latest release: Feb 12, 2018
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: amrania (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 401 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼138.86ms] Passed 4 tests

An overview of server-side resources used by Basic Shortcode Elements
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2135.24 ▲15.43
Dashboard /wp-admin3.15 ▲0.1048.34 ▲13.35
Posts /wp-admin/edit.php3.20 ▲0.1045.56 ▲2.31
Add New Post /wp-admin/post-new.php5.51 ▲0.0890.10 ▼567.61
Media Library /wp-admin/upload.php3.10 ▲0.0932.00 ▼3.47

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Basic Shortcode Elements: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11116.25 ▲0.5711.72 ▲2.2766.01 ▲22.54
Dashboard /wp-admin2,972 ▲385.88 ▼0.07145.46 ▼6.90111.87 ▲6.20
Posts /wp-admin/edit.php2,741 ▲22.72 ▲0.0265.97 ▼7.6393.42 ▲8.70
Add New Post /wp-admin/post-new.php1,706 ▲2318.49 ▼0.36377.31 ▼17.45108.99 ▼0.55
Media Library /wp-admin/upload.php1,778 ▼295.38 ▲0.34150.22 ▼6.80114.39 ▼2.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: twitter, table styles, facebook, parallax image, share posts...

basic-shortcode-elements/basic_shortcode_elements.php 85% from 13 tests

Analyzing the main PHP file in "Basic Shortcode Elements" version 1.3
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("basic-shortcode-elements.php" instead of "basic_shortcode_elements.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,875 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS2221511,222
PHP116635363
JavaScript116855290

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.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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/icons/vertical-space-separation.png0.13KB0.17KB0.00%
admin/icons/table2.png0.87KB0.26KB▼ 70.01%
admin/icons/plus_one_black_24_2x.png0.15KB0.22KB0.00%
admin/icons/table.png0.72KB0.20KB▼ 72.94%
admin/icons/last-posts.png0.61KB0.21KB▼ 66.08%