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
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼148.44ms] Passed 4 tests
Server-side resources used by ACF - Relationship MIME type filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 31.40 ▲5.48 |
Dashboard /wp-admin | 3.06 ▼0.00 | 30.05 ▼6.53 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 29.53 ▼1.42 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 68.08 ▼584.14 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 23.34 ▼1.68 |
Server storage [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: no files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for ACF - Relationship MIME type filter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.62 ▲0.49 | 5.79 ▼1.19 | 75.03 ▼8.29 |
Dashboard /wp-admin | 2,930 ▲34 | 6.13 ▲0.02 | 116.90 ▼11.66 | 167.78 ▼14.54 |
Posts /wp-admin/edit.php | 2,743 ▲3 | 3.22 ▼0.02 | 62.75 ▼2.25 | 129.54 ▼13.00 |
Add New Post /wp-admin/post-new.php | 3,807 ▲109 | 18.39 ▲0.39 | 430.55 ▼28.46 | 165.95 ▲4.08 |
Media Library /wp-admin/upload.php | 1,752 ▼3 | 5.51 ▼0.04 | 145.19 ▼5.09 | 186.05 ▲0.97 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tested up to: Version format is invalid
- Requires at least: Version format is invalid
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
acf-relationship-mime-type-filter/acf-rmf.php 85% from 13 tests
"ACF - Relationship MIME type filter" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-relationship-mime-type-filter.php" instead of "acf-rmf.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin235 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 85 | 400 | 182 |
PO File | 1 | 7 | 7 | 32 |
Markdown | 1 | 16 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 17 | 80.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 19.05% |
Functions | 3 | |
▷ Named functions | 3 | 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
No PNG files were detected