84% regiondo-widgets

Code Review | Regiondo ShortCodes

WordPress plugin Regiondo ShortCodes scored84%from 54 tests.

About plugin

  • Plugin page: regiondo-widgets
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.3
  • WordPress version: 6.3.1
  • First release: Feb 27, 2020
  • Latest release: Sep 30, 2021
  • Number of updates: 22
  • Update frequency: every 26.5 days
  • Top authors: derhaeuptling (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.61ms] Passed 4 tests

A check of server-side resources used by Regiondo ShortCodes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.28 ▼2.91
Dashboard /wp-admin3.37 ▲0.0343.42 ▼19.60
Posts /wp-admin/edit.php3.49 ▲0.1345.36 ▼0.92
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.91 ▼5.18
Media Library /wp-admin/upload.php3.30 ▲0.0631.57 ▼2.75

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Regiondo ShortCodes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.86 ▲0.192.94 ▲1.0044.21 ▲2.63
Dashboard /wp-admin2,218 ▲304.81 ▼1.07112.48 ▼4.0141.73 ▼5.13
Posts /wp-admin/edit.php2,104 ▲152.05 ▲0.0138.32 ▼2.0233.51 ▼0.67
Add New Post /wp-admin/post-new.php1,524 ▼917.68 ▼5.42600.42 ▼39.5157.33 ▲7.18
Media Library /wp-admin/upload.php1,397 ▲94.21 ▼0.0297.15 ▼2.7742.05 ▼0.39

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/regiondo-widgets/includes/admin.php:166
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/regiondo-widgets/regiondo-shortcodes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/regiondo-widgets/includes/shortcode_voucher.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/regiondo-widgets/includes/shortcode_review.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/regiondo-widgets/includes/shortcode_booking.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/regiondo-widgets/includes/footer.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: iframe, regiondo, widgets, booking

regiondo-widgets/regiondo-shortcodes.php 85% from 13 tests

"Regiondo ShortCodes" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("regiondo-widgets.php" instead of "regiondo-shortcodes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin365 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8149132365

PHP code Passed 2 tests

This is a very shot review of 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.12
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%
Functions20
▷ Named functions20100.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
No PNG images were found in this plugin