89% etd-dynamic-shortcodes

Code Review | ETD Dynamic Shortcodes

WordPress plugin ETD Dynamic Shortcodes scored89%from 54 tests.

About plugin

  • Plugin page: etd-dynamic-short...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 10, 2019
  • Latest release: Sep 10, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: eriktdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.10ms] Passed 4 tests

Server-side resources used by ETD Dynamic Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.26 ▼1.49
Dashboard /wp-admin3.37 ▲0.0348.16 ▼8.58
Posts /wp-admin/edit.php3.48 ▲0.1352.06 ▲2.71
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.36 ▼9.02
Media Library /wp-admin/upload.php3.29 ▲0.0636.79 ▲3.59
Add New /wp-admin/post-new.php?post_type=dynamic_shortcode3.3447.52
All Shortcodes /wp-admin/edit.php?post_type=dynamic_shortcode3.3336.58

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ETD Dynamic Shortcodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10313.66 ▼1.011.85 ▲0.2441.11 ▼0.57
Dashboard /wp-admin2,227 ▲725.81 ▲0.15102.43 ▲7.1237.39 ▼5.53
Posts /wp-admin/edit.php2,110 ▲212.02 ▲0.0139.34 ▼2.6136.15 ▼4.01
Add New Post /wp-admin/post-new.php1,562 ▲4818.36 ▲0.75598.61 ▼18.2258.39 ▼2.87
Media Library /wp-admin/upload.php1,412 ▲274.25 ▲0.0897.32 ▲2.1440.29 ▼2.60
Add New /wp-admin/post-new.php?post_type=dynamic_shortcode1,4782.5350.9958.26
All Shortcodes /wp-admin/edit.php?post_type=dynamic_shortcode1,0772.0033.1828.81

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

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Editor screen for creating a shortcode) image required
The official readme.txt is a good inspiration

etd-dynamic-shortcodes/etd-dynamic-shortcodes.php 85% from 13 tests

The entry point to "ETD Dynamic Shortcodes" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • 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

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
Success! There were no dangerous files found in this plugin214 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP375164214

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.50
▷ Minimum class complexity14.00
▷ Maximum class complexity15.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon-256x256.png28.36KB20.82KB▼ 26.58%
icon-128x128.png8.93KB6.57KB▼ 26.40%
screenshot-1.png34.76KB11.49KB▼ 66.95%