Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/advanced-custom-fields-migrator/advanced-custom-fields-migrator.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; Acf_Field_Migration has a deprecated constructor
Server metrics [RAM: ▼2.36MB] [CPU: ▼349.21ms] Passed 4 tests
Analyzing server-side resources used by Advanced Custom Fields Migration Cleanup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.01 ▼1.51 | 4.67 ▼42.42 |
Dashboard /wp-admin | 2.03 ▼1.38 | 3.72 ▼29.08 |
Posts /wp-admin/edit.php | 2.03 ▼1.61 | 3.98 ▼31.84 |
Add New Post /wp-admin/post-new.php | 2.03 ▼4.94 | 4.37 ▼1,293.51 |
Media Library /wp-admin/upload.php | 2.03 ▼1.27 | 4.43 ▼19.61 |
ACF Migration /wp-admin/options-general.php?page=acf-migrator-options | 2.03 | 4.26 |
ACF Migration /wp-admin/tools.php?page=acf-migrator | 2.03 | 5.01 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Custom Fields Migration Cleanup
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.90 ▲0.65 | 6.56 ▲0.25 | 2.25 ▼0.27 |
Dashboard /wp-admin | 2,902 ▲41 | 6.00 ▼0.06 | 116.26 ▼18.29 | 158.41 ▼4.75 |
Posts /wp-admin/edit.php | 2,698 ▲7 | 3.25 ▲0.00 | 64.43 ▼1.40 | 143.35 ▼7.73 |
Add New Post /wp-admin/post-new.php | 1,691 ▼61 | 18.18 ▼3.45 | 397.05 ▼55.10 | 160.83 ▲2.72 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.51 ▼0.01 | 153.22 ▲6.32 | 193.11 ▲3.92 |
ACF Migration /wp-admin/options-general.php?page=acf-migrator-options | 1,281 | 3.46 | 69.57 | 151.61 |
ACF Migration /wp-admin/tools.php?page=acf-migrator | 1,054 | 2.56 | 56.49 | 108.93 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/advanced-custom-fields-migrator/advanced-custom-fields-migrator.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; Acf_Field_Migration has a deprecated constructor
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=acf-migrator
- > Deprecated in wp-content/plugins/advanced-custom-fields-migrator/advanced-custom-fields-migrator.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; Acf_Field_Migration has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=acf-migrator
- > Deprecated in wp-content/plugins/advanced-custom-fields-migrator/screen-meta-links.php+23
Methods with the same name as their class will not be constructors in a future version of PHP; wsScreenMetaLinks11 has a deprecated constructor
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-custom-fields-migrator/advanced-custom-fields-migrator.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-custom-fields-migrator/class.options.php:306
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=acf-migrator-options
- > Console-api (warning) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'mozilla')" "TypeError: Cannot read properties of undefined (reading 'mozilla')\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=acf-migrator-options:260:18)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=acf-migrator-options
- > Javascript (severe) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'mozilla')
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Settings - Post Selection), #2 (Settings - General Settings), #3 (ACF Migrator), #4 (ACF Migrator - In progress)
advanced-custom-fields-migrator/advanced-custom-fields-migrator.php Passed 13 tests
The entry point to "Advanced Custom Fields Migration Cleanup" version 0.0.5 is a PHP file that has certain tags in its header comment area
84 characters long description:
Correct and prevent Advanced Custom Fields options migration autoload 'yes' to 'no'.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,372 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 302 | 198 | 973 |
CSS | 2 | 36 | 48 | 395 |
JavaScript | 2 | 0 | 25 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 36.33 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jquery-ui/redmond/images/ui-bg_glass_85_dfeffc_1x400.png | 0.12KB | 0.15KB | 0.00% |
jquery-ui/redmond/images/ui-bg_flat_55_fbec88_40x100.png | 0.21KB | 0.08KB | ▼ 59.15% |
jquery-ui/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png | 3.38KB | 1.68KB | ▼ 50.10% |
screenshot-3.png | 33.77KB | 11.41KB | ▼ 66.21% |
screenshot-1.png | 50.38KB | 18.04KB | ▼ 64.20% |