Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼145.51ms] Passed 4 tests
Analyzing server-side resources used by Advanced Custom Fields: WPML Language Selector Field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.60 ▲12.06 |
Dashboard /wp-admin | 3.06 ▲0.00 | 46.47 ▼1.33 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 48.57 ▼6.13 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 94.88 ▼574.69 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.44 ▲0.12 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: WPML Language Selector Field
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.79 ▲0.14 | 13.03 ▲3.58 | 52.82 ▲2.77 |
Dashboard /wp-admin | 2,970 ▲39 | 5.88 ▼0.22 | 140.98 ▼30.10 | 118.14 ▼13.00 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.71 ▼0.00 | 68.89 ▼4.46 | 93.70 ▲3.55 |
Add New Post /wp-admin/post-new.php | 1,604 ▼79 | 18.54 ▼0.00 | 394.27 ▼14.73 | 117.49 ▼11.44 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.02 | 159.46 ▲0.53 | 130.37 ▼2.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/advanced-custom-fields-wpml-language-selector/acf-wpml-language-selector.php:18
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-wpml-language-selector/acf-wpml-language-selector-v5.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-wpml-language-selector/acf-wpml-language-selector-v4.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
5 plugin tags: acf, language select, language, wpml, custom field
advanced-custom-fields-wpml-language-selector/acf-wpml-language-selector.php 92% from 13 tests
The main PHP script in "Advanced Custom Fields: WPML Language Selector Field" version 1.2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-custom-fields-wpml-language-selector.php" instead of "acf-wpml-language-selector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin234 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 93 | 129 | 214 |
Markdown | 2 | 13 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin