94% ivysilani-shortcode

Code Review | iVysilani Shortcode

WordPress plugin iVysilani Shortcode scored 94% from 54 tests.

About plugin

  • Plugin page: ivysilani-shortcode
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.3.2
  • WordPress version: 5.8.1
  • First release: Aug 3, 2013
  • Latest release: Jan 24, 2020
  • Number of updates: 44
  • Update frequency: every 53.8 days
  • Top authors: deckercz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 776 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼138.74ms] Passed 4 tests

A check of server-side resources used by iVysilani Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1330.57 ▲10.33
Dashboard /wp-admin3.07 ▲0.0142.10 ▼1.24
Posts /wp-admin/edit.php3.13 ▲0.0147.01 ▲1.51
Add New Post /wp-admin/post-new.php5.43 ▼0.0090.88 ▼559.05
Media Library /wp-admin/upload.php3.02 ▲0.0135.96 ▲3.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by iVysilani Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.94 ▲0.259.80 ▲0.9147.39 ▲0.28
Dashboard /wp-admin2,992 ▲585.96 ▼0.02135.56 ▼7.26110.83 ▼5.31
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0064.84 ▼1.5589.63 ▼1.22
Add New Post /wp-admin/post-new.php1,872 ▲20019.21 ▲0.33380.18 ▼14.63109.77 ▼1.03
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.00144.96 ▼0.75121.04 ▲2.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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)
Everything seems fine, however 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
Almost there! Just 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/ivysilani-shortcode/ivysilani-shortcode.php:108

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: ivysilani, ivysilanicz, player, video, shortcode...

ivysilani-shortcode/ivysilani-shortcode.php Passed 13 tests

Analyzing the main PHP file in "iVysilani Shortcode" version 3.0
67 characters long description:
Embed customized iVysílání (CZ) videos anywhere using shortcodes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,778 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24013181,759
JavaScript15219

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity193.50
▷ Minimum class complexity138.00
▷ Maximum class complexity249.00
Average method complexity5.28
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods90
▷ Static methods11.11%
▷ Public methods7583.33%
▷ Protected methods1516.67%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wp_ivysilani.png2.40KB1.17KB▼ 51.16%