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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼298.30ms] Passed 4 tests
This is a short check of server-side resources used by ACF Options For Polylang
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 63.90 ▼1.37 |
Dashboard /wp-admin | 3.41 ▲0.00 | 37.73 ▼8.18 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 39.52 ▼5.77 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 98.02 ▼1,168.15 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 31.55 ▼11.09 |
Server storage [IO: ▲4.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for ACF Options For Polylang
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲41 | 15.91 ▲0.27 | 6.83 ▼1.19 | 2.09 ▼0.52 |
Dashboard /wp-admin | 2,895 ▲34 | 6.21 ▲0.06 | 131.86 ▼12.28 | 165.68 ▲5.59 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.01 | 62.43 ▼5.01 | 134.65 ▼16.87 |
Add New Post /wp-admin/post-new.php | 1,752 ▲35 | 21.59 ▼0.49 | 452.43 ▲10.14 | 159.15 ▲4.37 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.44 ▼0.09 | 137.92 ▼20.85 | 184.37 ▼15.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 take a closer look at the following
- 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 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 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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: advanced custom fields, acf, options page, polylang, options...
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.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! 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 are no cyclomatic complexity problems detected for this plugin
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 2.85MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.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/banner-772x250.png | 1,013.58KB | 13.54KB | ▼ 98.66% |
.wordpress-org/banner-github.png | 25.72KB | 11.76KB | ▼ 54.28% |
.wordpress-org/banner-github-old.png | 80.44KB | 80.57KB | 0.00% |