83% do-shortcode-widget-everywhere-wpshare247

Code Review | Do Shortcode Widget EveryWhere - WPSHARE247

WordPress plugin Do Shortcode Widget EveryWhere - WPSHARE247 scored83%from 54 tests.

About plugin

  • Plugin page: do-shortcode-widg...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2022
  • Latest release: Nov 26, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: website366 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,602 total downloads


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: ▲0.01MB] [CPU: ▼2.58ms] Passed 4 tests

An overview of server-side resources used by Do Shortcode Widget EveryWhere - WPSHARE247
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.05 ▲0.31
Dashboard /wp-admin3.31 ▲0.0144.75 ▼1.80
Posts /wp-admin/edit.php3.36 ▲0.0148.03 ▲3.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.82 ▼4.99
Media Library /wp-admin/upload.php3.24 ▲0.0131.32 ▼3.85

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Do Shortcode Widget EveryWhere - WPSHARE247
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.37 ▲0.101.87 ▲0.3539.19 ▼2.28
Dashboard /wp-admin2,195 ▲145.53 ▼0.1685.87 ▼14.7340.19 ▼2.66
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0639.14 ▲2.5436.28 ▼0.12
Add New Post /wp-admin/post-new.php1,534 ▲618.54 ▼4.28615.46 ▼50.0760.77 ▲1.50
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0094.39 ▼7.4840.15 ▼4.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/do-shortcode-widget-everywhere-wpshare247/inc/wpshare247_pro_shortcode.php:7

User-side errors Passed 1 test

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


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #2, #3, #4 in do-shortcode-widget-everywhere-wpshare247/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === do-shortcode-widget-everywhere-wpshare247 === )
You can take inspiration from this readme.txt

do-shortcode-widget-everywhere-wpshare247/do-shortcode-widget-everywhere-wpshare247.php 85% from 13 tests

The entry point to "Do Shortcode Widget EveryWhere - WPSHARE247" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)

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 plugin128 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File16127

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
There are no PNG files in this plugin