10% dynamic-content-shortcode

Code Review | Dynamic Content Shortcode

WordPress plugin Dynamic Content Shortcode scored10%from 54 tests.

About plugin

  • Plugin page: dynamic-content-s...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Jun 9, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: eavitan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /209 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/dynamic-content-shortcode/dyco-shortcode.php+77
    Uncaught Error: Class 'Dyco_Shortcode' not found in wp-content/plugins/dynamic-content-shortcode/dyco-shortcode.php:77
    Stack trace:
    #0 wp-content/plugins/dynamic-content-shortcode/dyco-shortcode.php(81): run_dyco_shortcode()
    #1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▼0.01MB] [CPU: ▼3.53ms] Passed 4 tests

Server-side resources used by Dynamic Content Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.21 ▼2.25
Dashboard /wp-admin3.31 ▼0.0451.10 ▼11.72
Posts /wp-admin/edit.php3.36 ▲0.0044.13 ▼1.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.42 ▲0.93
Media Library /wp-admin/upload.php3.23 ▲0.0035.15 ▲1.14

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Dynamic Content Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.63 ▲0.041.78 ▼0.5540.66 ▼11.12
Dashboard /wp-admin2,198 ▲185.62 ▲0.0087.61 ▼3.5836.81 ▼4.87
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0634.46 ▼3.3529.57 ▼4.02
Add New Post /wp-admin/post-new.php1,527 ▲122.77 ▼0.37591.51 ▼46.2077.43 ▲16.64
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.02101.94 ▼2.8547.02 ▲3.85

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-content-shortcode/main.php:49

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Usage example on product page) image required
You can look at the official readme.txt

dynamic-content-shortcode/dyco-shortcode.php 85% from 13 tests

The main PHP script in "Dynamic Content Shortcode" version 1.2.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("dynamic-content-shortcode.php" instead of "dyco-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected64 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4207864

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin