Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.60ms] Passed 4 tests
Analyzing server-side resources used by ACF - Relationship MIME type filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.99 ▲0.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.12 ▼7.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.83 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.76 ▼3.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.78 ▼2.61 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
ACF - Relationship MIME type filter: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.27 ▼1.10 | 1.93 ▼0.07 | 43.03 ▼1.95 |
Dashboard /wp-admin | 2,206 ▲21 | 5.86 ▼0.07 | 106.23 ▼1.24 | 38.88 ▼3.76 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 1.99 ▼0.02 | 38.94 ▲4.40 | 34.27 ▲3.93 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.21 ▼0.15 | 664.63 ▼20.44 | 54.09 ▼6.05 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.32 ▲0.13 | 102.31 ▲0.36 | 42.73 ▼2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Requires at least: Version not formatted correctly
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Tested up to: Version not formatted correctly
acf-relationship-mime-type-filter/acf-rmf.php 85% from 13 tests
Analyzing the main PHP file in "ACF - Relationship MIME type filter" version 1.0.0
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- 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")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous 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
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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