83% drimify-widget

Code Review | WP Shortcode by Drimify

WordPress plugin WP Shortcode by Drimify scored83%from 54 tests.

About plugin

  • Plugin page: drimify-widget
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.2-6.3
  • WordPress version: 6.3.1
  • First release: Dec 12, 2017
  • Latest release: Jul 27, 2023
  • Number of updates: 26
  • Update frequency: every 79.8 days
  • Top authors: middir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WP Shortcode by Drimify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.71 ▼0.43
Dashboard /wp-admin3.31 ▲0.0046.86 ▲1.67
Posts /wp-admin/edit.php3.36 ▲0.0042.35 ▼1.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.50 ▼4.77
Media Library /wp-admin/upload.php3.23 ▲0.0032.05 ▼0.98

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Shortcode by Drimify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.31 ▼1.441.96 ▲0.2544.69 ▲3.07
Dashboard /wp-admin2,206 ▲205.91 ▲0.97106.57 ▼5.6641.47 ▲1.32
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0235.44 ▲1.6433.87 ▼0.50
Add New Post /wp-admin/post-new.php1,533 ▼118.30 ▼4.79607.44 ▼123.0666.73 ▲10.73
Media Library /wp-admin/upload.php1,388 ▲64.29 ▲0.0395.03 ▼9.1239.56 ▼6.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/drimify-widget/drimify.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: marketing games, drimify, polls, shortcode, gamification...

drimify-widget/drimify.php 69% from 13 tests

"WP Shortcode by Drimify" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 226 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("drimify-widget.php" instead of "drimify.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
There were no executable files found in this plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102232

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin