10% wpml2wpmsls

Code Review | WPML2WPMSLS

WordPress plugin WPML2WPMSLS scored10%from 54 tests.

About plugin

  • Plugin page: wpml2wpmsls
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4.2
  • WordPress version: 6.3.1
  • First release: May 31, 2013
  • Latest release: Aug 4, 2020
  • Number of updates: 12
  • Update frequency: every 218.4 days
  • Top authors: Idealien (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,170 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wpml2wpmsls/wpml2wpmsls.php+45
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.07MB] [CPU: ▼10.06ms] Passed 4 tests

A check of server-side resources used by WPML2WPMSLS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.24 ▼3.42
Dashboard /wp-admin3.39 ▲0.0551.49 ▼13.50
Posts /wp-admin/edit.php3.51 ▲0.1549.22 ▲2.55
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.49 ▼25.58
Media Library /wp-admin/upload.php3.32 ▲0.0938.11 ▲2.25
WPML 2 WPMSLS /wp-admin/options-general.php?page=wpml2wpmsls3.2633.61

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
idealien_ml2msls_options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

WPML2WPMSLS: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.26 ▼0.041.89 ▲0.1345.23 ▲5.07
Dashboard /wp-admin2,196 ▲155.53 ▼0.2286.76 ▼16.7839.79 ▼5.66
Posts /wp-admin/edit.php2,104 ▲222.00 ▼0.0438.46 ▲1.4037.59 ▲3.55
Add New Post /wp-admin/post-new.php1,548 ▲223.24 ▼0.12675.30 ▲81.2160.16 ▲14.74
Media Library /wp-admin/upload.php1,407 ▲74.22 ▲0.01100.13 ▼7.5943.59 ▼1.67
WPML 2 WPMSLS /wp-admin/options-general.php?page=wpml2wpmsls9522.0525.5628.10

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wpml2wpmsls
    • > Notice in wp-content/plugins/wpml2wpmsls/wpml2wpmsls.php+148
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpml2wpmsls/wpml2wpmsls.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wpml2wpmsls/wpml2wpmsls.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: multisite, network, export, multilingual, i18ln...

wpml2wpmsls/wpml2wpmsls.php 92% from 13 tests

The main PHP file in "WPML2WPMSLS" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin340 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19449340

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin