78% shortcode-enablr

Code Review | Shortcode Enablr

WordPress plugin Shortcode Enablr scored78%from 54 tests.

About plugin

  • Plugin page: shortcode-enablr
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.7
  • WordPress version: 6.3.1
  • First release: Dec 19, 2019
  • Latest release: Mar 19, 2021
  • Number of updates: 11
  • Update frequency: every 41.5 days
  • Top authors: b3none (72.73%)garethmorgans (36.36%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /725 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.01MB] [CPU: ▼3.05ms] Passed 4 tests

A check of server-side resources used by Shortcode Enablr
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.41 ▼4.74
Dashboard /wp-admin3.32 ▲0.0150.80 ▼0.73
Posts /wp-admin/edit.php3.37 ▲0.0148.38 ▲0.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.30 ▼7.22
Media Library /wp-admin/upload.php3.24 ▲0.0135.37 ▲1.04
Shortcode Enablr /wp-admin/options-general.php?page=shortcode_enablr3.2033.49

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Shortcode Enablr
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.18 ▼1.121.94 ▲0.1543.29 ▼1.07
Dashboard /wp-admin2,225 ▲245.88 ▲0.9098.88 ▼14.5938.81 ▼5.64
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0139.68 ▲4.5136.20 ▲0.74
Add New Post /wp-admin/post-new.php1,557 ▲2818.39 ▲0.67643.99 ▼36.8051.05 ▼8.96
Media Library /wp-admin/upload.php1,404 ▲74.22 ▲0.03101.51 ▲0.9344.58 ▼1.03
Shortcode Enablr /wp-admin/options-general.php?page=shortcode_enablr8242.0126.5028.05

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/shortcode-enablr/shortcode-enablr.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shortcode-enablr/templates/settings.php:17

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (There are no screenshots available for this project.) image not found
The official readme.txt might help

shortcode-enablr/shortcode-enablr.php Passed 13 tests

The entry point to "Shortcode Enablr" version 1.1.4 is a PHP file that has certain tags in its header comment area
18 characters long description:
Shortcode enabler.

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 plugin68 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP315868

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.78
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin