Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.27ms] Passed 4 tests
This is a short check of server-side resources used by ACF Options For Polylang
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.00 | 42.95 ▼3.13 |
Dashboard /wp-admin | 3.57 ▲0.00 | 53.63 ▲2.15 |
Posts /wp-admin/edit.php | 3.68 ▲0.00 | 48.46 ▼6.19 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.00 | 87.23 ▼29.90 |
Media Library /wp-admin/upload.php | 3.49 ▲0.00 | 41.42 ▲5.32 |
Server storage [IO: ▲4.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by ACF Options For Polylang
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.44 ▲0.18 | 1.97 ▲0.15 | 43.78 ▼0.55 |
Dashboard /wp-admin | 2,198 ▲24 | 5.65 ▲0.07 | 86.62 ▼2.76 | 41.48 ▼2.69 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.11 ▲0.13 | 36.11 ▼7.10 | 35.83 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 23.21 ▼0.05 | 642.08 ▼21.75 | 51.52 ▼4.28 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▼0.02 | 100.16 ▼4.35 | 43.38 ▼6.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/acf-options-for-polylang/bea-acf-options-for-polylang.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Trait 'BEA\\ACF_Options_For_Polylang\\Singleton' not found in wp-content/plugins/acf-options-for-polylang/classes/main.php on line 5
- > PHP Fatal error
Trait 'BEA\\ACF_Options_For_Polylang\\Singleton' not found in wp-content/plugins/acf-options-for-polylang/classes/admin.php on line 5
- > PHP Warning
Use of undefined constant BEA_ACF_OPTIONS_FOR_POLYLANG_DIR - assumed 'BEA_ACF_OPTIONS_FOR_POLYLANG_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/acf-options-for-polylang/autoload.php on line 195
- > PHP Fatal error
Trait 'BEA\\ACF_Options_For_Polylang\\Singleton' not found in wp-content/plugins/acf-options-for-polylang/classes/requirements.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: options, option, advanced custom fields, options page, polylang...
acf-options-for-polylang/bea-acf-options-for-polylang.php 92% from 13 tests
The main file in "ACF Options For Polylang" v. 1.1.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-options-for-polylang.php" instead of "bea-acf-options-for-polylang.php")
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 plugin493 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 110 | 328 | 311 |
PO File | 4 | 36 | 42 | 182 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 8 | 29.63% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 5 | 18.52% |
▷ Private methods | 1 | 3.70% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 4.38MB with 3.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/banner-772x250.png | 1,013.58KB | 13.54KB | ▼ 98.66% |
.wordpress-org/banner-1544x500.png | 3,275.90KB | 28.46KB | ▼ 99.13% |
.wordpress-org/icon-128x128.png | 47.19KB | 12.91KB | ▼ 72.64% |
.wordpress-org/icon-256x256.png | 47.19KB | 12.91KB | ▼ 72.64% |
.wordpress-org/banner-github-old.png | 80.44KB | 80.57KB | 0.00% |