84% mc4wp-wpml

Code Review | MC4WP: WPML Integration

WordPress plugin MC4WP: WPML Integration scored84%from 54 tests.

About plugin

  • Plugin page: mc4wp-wpml
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1
  • WordPress version: 6.3.1
  • First release: Jul 7, 2017
  • Latest release: Dec 23, 2022
  • Number of updates: 15
  • Update frequency: every 133.1 days
  • Top authors: DvanKooten (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /16,363 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.01MB] [CPU: ▼3.27ms] Passed 4 tests

An overview of server-side resources used by MC4WP: WPML Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.25 ▲1.34
Dashboard /wp-admin3.31 ▲0.0145.60 ▼2.57
Posts /wp-admin/edit.php3.36 ▲0.0147.27 ▲5.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.76 ▼13.28
Media Library /wp-admin/upload.php3.23 ▲0.0034.87 ▲1.43

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

Browser metrics Passed 4 tests

Checking browser requirements for MC4WP: WPML Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.53 ▼0.774.60 ▲2.9244.97 ▲1.61
Dashboard /wp-admin2,203 ▲125.78 ▲0.8995.46 ▼5.8538.31 ▼6.13
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0435.22 ▲0.4533.98 ▼1.79
Add New Post /wp-admin/post-new.php1,514 ▼017.46 ▼0.17640.21 ▼28.1869.04 ▲16.60
Media Library /wp-admin/upload.php1,388 ▲64.32 ▲0.1094.96 ▼8.9742.30 ▼7.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mc4wp-wpml/mc4wp-wpml.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mc4wp-wpml/includes/admin-hooks.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/mc4wp-wpml/includes/views/settings-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mc4wp-wpml/includes/hooks.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
3 plugin tags: mailchimp, wpml, mc4wp

mc4wp-wpml/mc4wp-wpml.php 92% from 13 tests

The main file in "MC4WP: WPML Integration" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin128 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP62933128

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions9
▷ Named functions444.44%
▷ Anonymous functions555.56%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin