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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.24 ▼3.42 |
Dashboard /wp-admin | 3.39 ▲0.05 | 51.49 ▼13.50 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.22 ▲2.55 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 84.49 ▼25.58 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.11 ▲2.25 |
WPML 2 WPMSLS /wp-admin/options-general.php?page=wpml2wpmsls | 3.26 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▼0.04 | 1.89 ▲0.13 | 45.23 ▲5.07 |
Dashboard /wp-admin | 2,196 ▲15 | 5.53 ▼0.22 | 86.76 ▼16.78 | 39.79 ▼5.66 |
Posts /wp-admin/edit.php | 2,104 ▲22 | 2.00 ▼0.04 | 38.46 ▲1.40 | 37.59 ▲3.55 |
Add New Post /wp-admin/post-new.php | 1,548 ▲2 | 23.24 ▼0.12 | 675.30 ▲81.21 | 60.16 ▲14.74 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▲0.01 | 100.13 ▼7.59 | 43.59 ▼1.67 |
WPML 2 WPMSLS /wp-admin/options-general.php?page=wpml2wpmsls | 952 | 2.05 | 25.56 | 28.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 94 | 49 | 340 |
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 code | 0.21 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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