89% shortcodes-ultimate-preklad

Code Review | Shortcodes Ultimate překlad

WordPress plugin Shortcodes Ultimate překlad scored89%from 54 tests.

About plugin

  • Plugin page: shortcodes-ultima...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: May 9, 2015
  • Number of updates: 11
  • Update frequency: every 82.6 days
  • Top authors: expres-web (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,046 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
Installer ran successfully

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

Analyzing server-side resources used by Shortcodes Ultimate překlad
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.58 ▼5.26
Dashboard /wp-admin3.31 ▲0.0050.45 ▼2.97
Posts /wp-admin/edit.php3.36 ▲0.0046.98 ▼3.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.36 ▼5.01
Media Library /wp-admin/upload.php3.23 ▲0.0039.43 ▼0.15

Server storage [IO: ▲0.33MB] [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: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Shortcodes Ultimate překlad
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.361.73 ▼0.2543.62 ▼1.28
Dashboard /wp-admin2,198 ▲215.61 ▼0.0794.59 ▲3.3443.30 ▲2.74
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0235.35 ▼0.3934.47 ▼0.03
Add New Post /wp-admin/post-new.php1,526 ▼223.27 ▲0.07665.59 ▲51.3560.20 ▲1.67
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.10103.89 ▲2.4544.77 ▲1.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Překlad úvodní stránky), #2 (Překlad nastavení), #3 (Zkrácené kódy)
You can look at the official readme.txt

shortcodes-ultimate-preklad/shortcode-preklady.php 85% from 13 tests

Analyzing the main PHP file in "Shortcodes Ultimate překlad" version 1.6
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shortcodes-ultimate-preklad.php" instead of "shortcode-preklady.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16268

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png94.95KB41.43KB▼ 56.36%
screenshot-2.png64.33KB27.19KB▼ 57.73%
screenshot-1.png154.94KB65.69KB▼ 57.60%