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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼19.11ms] Passed 4 tests
Server-side resources used by ACF Images Search And Insert
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.19 ▲2.19 |
Dashboard /wp-admin | 3.16 ▼0.14 | 27.26 ▼23.31 |
Posts /wp-admin/edit.php | 3.30 ▼0.06 | 32.25 ▼15.28 |
Add New Post /wp-admin/post-new.php | 5.54 ▼0.35 | 76.26 ▼30.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 28.54 ▼7.40 |
ACF Images Search And Insert /wp-admin/options-general.php?page=aisai_settings | 3.15 | 26.92 |
Server storage [IO: ▲5.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
aisai_options |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ACF Images Search And Insert
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.80 ▼0.48 | 1.79 ▼0.06 | 33.12 ▼11.27 |
Dashboard /wp-admin | 2,220 ▲29 | 5.58 ▲0.70 | 108.73 ▲8.80 | 41.99 ▲1.81 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.52 ▲0.52 | 38.25 ▲2.44 | 36.31 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,528 ▼9 | 23.87 ▲0.72 | 636.68 ▼51.83 | 62.34 ▲13.02 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.82 ▲0.64 | 99.76 ▼0.77 | 46.33 ▲4.67 |
ACF Images Search And Insert /wp-admin/options-general.php?page=aisai_settings | 1,149 | 2.52 | 28.75 | 45.46 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- aisai_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Search result in WP Media modal) image not found
acf-images-search-and-insert/acf-images-search-and-insert.php 85% from 13 tests
The primary PHP file in "ACF Images Search And Insert" version 1.1.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin445 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
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
PNG files should be compressed to save space and minimize bandwidth usage
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% |