90% mdl-shortcodes

Code Review | Modern Design Library

WordPress plugin Modern Design Library scored90%from 54 tests.

About plugin

  • Plugin page: mdl-shortcodes
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Sep 15, 2015
  • Latest release: Oct 26, 2023
  • Number of updates: 29
  • Update frequency: every 102.8 days
  • Top authors: cliffpaulick (82.76%)butterflymedia (20.69%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,708 total downloads

Benchmarks

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼123.38ms] Passed 4 tests

Analyzing server-side resources used by Modern Design Library
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.79 ▼2.26
Dashboard /wp-admin3.32 ▼0.1146.50 ▼488.53
Posts /wp-admin/edit.php3.37 ▲0.0146.09 ▲0.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.90 ▲3.07
Media Library /wp-admin/upload.php3.24 ▲0.0135.22 ▼3.52
Modern Design Library /wp-admin/options-general.php?page=mdlui3.2131.50

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

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

Browser metrics Passed 4 tests

Modern Design Library: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5614.37 ▲0.021.80 ▲0.0637.41 ▼1.37
Dashboard /wp-admin2,210 ▲365.63 ▲0.0582.52 ▼3.2340.93 ▲2.77
Posts /wp-admin/edit.php2,112 ▲122.00 ▼0.0335.13 ▲1.3632.58 ▼0.44
Add New Post /wp-admin/post-new.php6,377 ▲4,84027.75 ▲9.54917.90 ▲249.0970.08 ▲2.30
Media Library /wp-admin/upload.php1,412 ▲154.16 ▼0.1796.56 ▼18.7244.49 ▼3.98
Modern Design Library /wp-admin/options-general.php?page=mdlui7922.0228.8229.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: separator, ux, divider, ui, line

mdl-shortcodes/mdl-shortcodes.php Passed 13 tests

"Modern Design Library" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
A modern design library toolkit for creating separators, lines, dividers, decorative elements and more.

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
Success! There were no dangerous files found in this plugin394 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33350307
PHP2284259
XML17425
CSS219663

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.26
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin