84% theme-blvd-wpml-bridge

Code Review | Theme Blvd WPML Bridge

WordPress plugin Theme Blvd WPML Bridge scored84%from 54 tests.

About plugin

  • Plugin page: theme-blvd-wpml-b...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 24, 2012
  • Latest release: Mar 20, 2014
  • Number of updates: 32
  • Update frequency: every 20.8 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /41,946 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 successfully, without throwing any errors or notices

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

Server-side resources used by Theme Blvd WPML Bridge
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.15 ▼1.76
Dashboard /wp-admin3.31 ▼0.0349.60 ▼16.84
Posts /wp-admin/edit.php3.36 ▲0.0148.52 ▲3.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.77 ▼11.61
Media Library /wp-admin/upload.php3.24 ▲0.0134.73 ▼3.15

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

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

Browser metrics Passed 4 tests

Theme Blvd WPML Bridge: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.68 ▲0.021.81 ▲0.0341.18 ▼3.47
Dashboard /wp-admin2,195 ▲155.56 ▼0.0888.32 ▼4.0340.64 ▲0.47
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0437.47 ▼1.5534.07 ▼1.79
Add New Post /wp-admin/post-new.php1,526 ▼922.91 ▲4.53680.78 ▲63.6160.48 ▼16.66
Media Library /wp-admin/upload.php1,403 ▲64.20 ▲0.0198.66 ▼8.3446.55 ▲2.32

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/theme-blvd-wpml-bridge/theme-blvd-wpml-bridge.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-blvd-wpml-bridge/includes/legacy.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-blvd-wpml-bridge/includes/frontend.php:61

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Appearance > Theme Options), #2 (WPML > {Theme Name})
Please take inspiration from this readme.txt

theme-blvd-wpml-bridge/theme-blvd-wpml-bridge.php Passed 13 tests

"Theme Blvd WPML Bridge" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
This plugin creates a bridge between the Theme Blvd framework and the WPML plugin.

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
Everything looks great! No dangerous files found in this plugin908 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3269699808
CSS111100

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png85.32KB27.50KB▼ 67.76%
assets/images/high-res/logo@2x.png3.76KB1.84KB▼ 51.17%
screenshot-1.png73.08KB23.57KB▼ 67.76%
assets/images/menu-bg.png1.07KB0.24KB▼ 77.96%
assets/images/logo.png2.28KB0.89KB▼ 60.94%