Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.30MB] [CPU: ▼306.99ms] Passed 4 tests
This is a short check of server-side resources used by ACF Images Search And Insert
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 55.32 ▲4.73 |
Dashboard /wp-admin | 3.30 ▼0.11 | 20.21 ▼13.04 |
Posts /wp-admin/edit.php | 3.36 ▼0.28 | 24.11 ▼12.54 |
Add New Post /wp-admin/post-new.php | 6.14 ▼0.83 | 73.68 ▼1,198.09 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 22.00 ▼4.27 |
ACF Images Search And Insert /wp-admin/options-general.php?page=aisai_settings | 3.28 | 23.27 |
Server storage [IO: ▲5.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
aisai_options |
Browser metrics Passed 4 tests
A check of browser resources used by ACF Images Search And Insert
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲27 | 16.54 ▲1.01 | 6.24 ▼0.12 | 2.40 ▼0.58 |
Dashboard /wp-admin | 2,907 ▲49 | 7.18 ▲0.99 | 128.16 ▼4.75 | 174.01 ▲14.71 |
Posts /wp-admin/edit.php | 2,706 ▲21 | 3.29 ▲0.05 | 68.43 ▲2.87 | 163.82 ▲23.20 |
Add New Post /wp-admin/post-new.php | 1,764 ▲74 | 21.89 ▲1.21 | 435.49 ▲5.34 | 161.08 ▼9.09 |
Media Library /wp-admin/upload.php | 1,713 ▲12 | 6.23 ▲0.67 | 130.43 ▼11.60 | 205.47 ▲22.19 |
ACF Images Search And Insert /wp-admin/options-general.php?page=aisai_settings | 1,413 | 3.07 | 62.54 | 183.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- aisai_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aisai_settings
- > Notice in wp-content/plugins/acf-images-search-and-insert/acf-images-search-and-insert.php+112
Undefined index: post_id
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/acf-images-search-and-insert/settings.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/acf-images-search-and-insert/acf-images-search-and-insert.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Search result in WP Media modal)
acf-images-search-and-insert/acf-images-search-and-insert.php 85% from 13 tests
The main PHP file in "ACF Images Search And Insert" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- 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
- Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected445 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 128 | 359 |
PO File | 1 | 20 | 22 | 66 |
JavaScript | 2 | 0 | 38 | 19 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.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
1 PNG file occupies 0.47MB with 0.33MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 481.29KB | 141.84KB | ▼ 70.53% |