89% sel-shortcodes

Code Review | Sel Shortcodes

WordPress plugin Sel Shortcodes scored89%from 54 tests.

About plugin

  • Plugin page: sel-shortcodes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Jul 19, 2017
  • Number of updates: 7
  • Update frequency: every 2.9 days
  • Top authors: selthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /713 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.57ms] Passed 4 tests

This is a short check of server-side resources used by Sel Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.93 ▼6.89
Dashboard /wp-admin3.32 ▼0.0249.25 ▼18.29
Posts /wp-admin/edit.php3.37 ▲0.0152.85 ▲3.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.73 ▲3.31
Media Library /wp-admin/upload.php3.24 ▲0.0134.95 ▼0.39

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Sel Shortcodes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲19014.16 ▼0.426.50 ▲4.7843.75 ▲3.95
Dashboard /wp-admin2,211 ▲235.84 ▲0.94100.76 ▼4.2041.13 ▼0.72
Posts /wp-admin/edit.php2,088 ▼12.00 ▲0.0439.80 ▲2.6937.26 ▲4.24
Add New Post /wp-admin/post-new.php1,539 ▲418.59 ▼4.52625.71 ▼26.5457.00 ▲7.57
Media Library /wp-admin/upload.php1,390 ▼14.19 ▼0.02100.92 ▼4.1642.33 ▼7.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: shortcode, shortcodes

sel-shortcodes/plugin.php 85% from 13 tests

"Sel Shortcodes" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("sel-shortcodes.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin649 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS41715271
JavaScript21812245
PHP65779133

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
assets/img/toolbar-icon.PNG0.60KB0.35KB▼ 42.30%
assets/css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
assets/css/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%