90% wpml-shortcodes

Code Review | WPML Shortcodes

WordPress plugin WPML Shortcodes scored90%from 54 tests.

About plugin

  • Plugin page: wpml-shortcodes
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2014
  • Latest release: Mar 5, 2016
  • Number of updates: 20
  • Update frequency: every 28.8 days
  • Top authors: mirkolofio (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /8,448 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WPML Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.24 ▼1.02
Dashboard /wp-admin3.32 ▲0.0254.42 ▲3.98
Posts /wp-admin/edit.php3.37 ▲0.0251.10 ▲1.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.54 ▲0.52
Media Library /wp-admin/upload.php3.25 ▲0.0234.67 ▼2.52

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

WPML Shortcodes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.24 ▼1.355.08 ▲3.1240.33 ▲1.77
Dashboard /wp-admin2,224 ▲184.83 ▼0.04103.06 ▼7.0938.87 ▼1.91
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0136.89 ▼6.2134.30 ▼2.68
Add New Post /wp-admin/post-new.php1,545 ▼023.08 ▼0.36640.29 ▼69.2348.66 ▼3.92
Media Library /wp-admin/upload.php1,403 ▲64.23 ▲0.03100.53 ▼8.6643.20 ▼4.37

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

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: wpml, shortcode, lang, translation, translate...

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

Analyzing the main PHP file in "WPML Shortcodes" version 1.2.6
107 characters long description:
Adds shortcodes to the WPML environment, like wpml__, wpml_e and more. Make your WordPress full WPML ready.

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
No dangerous file extensions were detected131 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12617131

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions16
▷ Named functions16100.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 files were detected