Benchmarks
Plugin footprint Passed 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.08MB] [CPU: ▼296.44ms] Passed 4 tests
Analyzing server-side resources used by ACF WPML Theme Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.03 | 63.58 ▲2.67 |
Dashboard /wp-admin | 4.12 ▲0.09 | 37.68 ▼0.99 |
Posts /wp-admin/edit.php | 4.40 ▲0.07 | 43.97 ▼1.53 |
Add New Post /wp-admin/post-new.php | 7.99 ▲0.40 | 88.45 ▼1,181.36 |
Media Library /wp-admin/upload.php | 4.10 ▲0.12 | 27.60 ▼1.87 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
ACF WPML Theme Options: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,829 ▲71 | 15.40 ▼0.30 | 6.13 ▲0.25 | 3.00 ▲0.23 |
Dashboard /wp-admin | 2,925 ▲67 | 6.02 ▼0.11 | 116.92 ▼24.50 | 147.68 ▼64.05 |
Posts /wp-admin/edit.php | 2,720 ▲32 | 3.25 ▲0.02 | 67.07 ▲0.62 | 148.93 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,669 ▲8 | 20.23 ▲4.51 | 379.34 ▼54.45 | 188.68 ▼1.09 |
Media Library /wp-admin/upload.php | 1,732 ▲37 | 5.54 ▲0.11 | 143.57 ▼9.15 | 167.48 ▼52.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'ACFWPMLInterfaceAdmin' not found in wp-content/plugins/acf-wpml-theme-options/admin/controllers/config.class.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-wpml-theme-options/admin/controllers/interface.class.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/acf-wpml-theme-options/acf-wpml-theme-options.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-wpml-theme-options/admin/controllers/ajax.class.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-wpml-theme-options/globals/controllers/reqs.class.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
7 plugin tags: wpml, settings, acfpro, translations, acf...
acf-wpml-theme-options/acf-wpml-theme-options.php 92% from 13 tests
"ACF WPML Theme Options" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected776 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 127 | 22 | 700 |
JavaScript | 2 | 22 | 0 | 51 |
CSS | 1 | 6 | 4 | 25 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected