Benchmarks
Plugin footprint 82% 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 gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▲114.11ms] 75% from 4 tests
This is a short check of server-side resources used by Abraia – Bulk image optimizer
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 554.01ms on /wp-admin/options-general.php?page=abraia)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.19 | 451.01 ▲400.60 |
Dashboard /wp-admin | 3.65 ▲0.24 | 443.27 ▲409.63 |
Posts /wp-admin/edit.php | 3.87 ▲0.23 | 535.35 ▲498.95 |
Add New Post /wp-admin/post-new.php | 7.18 ▲0.21 | 528.16 ▼750.96 |
Media Library /wp-admin/upload.php | 3.59 ▲0.29 | 420.91 ▲397.15 |
Bulk Abraia /wp-admin/upload.php?page=abraia_bulk_page | 3.48 | 411.75 |
Abraia /wp-admin/options-general.php?page=abraia | 3.47 | 554.01 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 1 new option
New WordPress options |
---|
abraia_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Abraia – Bulk image optimizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,902 ▲180 | 16.08 ▲0.30 | 5.20 ▼0.41 | 2.02 ▼0.34 |
Dashboard /wp-admin | 3,030 ▲169 | 6.05 ▼0.05 | 131.70 ▼3.06 | 219.01 ▲52.96 |
Posts /wp-admin/edit.php | 2,827 ▲139 | 3.23 ▼0.01 | 62.63 ▼1.74 | 168.17 ▲26.74 |
Add New Post /wp-admin/post-new.php | 2,018 ▲351 | 18.46 ▼1.27 | 425.94 ▲31.00 | 184.34 ▲30.74 |
Media Library /wp-admin/upload.php | 1,836 ▲138 | 5.58 ▲0.03 | 123.27 ▼18.37 | 218.48 ▲34.80 |
Bulk Abraia /wp-admin/upload.php?page=abraia_bulk_page | 1,354 | 2.51 | 54.02 | 227.91 |
Abraia /wp-admin/options-general.php?page=abraia | 1,496 | 2.38 | 54.92 | 193.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- abraia_settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=abraia
- > Notice in wp-content/plugins/abraia/admin/settings.php+115
Undefined variable: user
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=abraia
- > Notice in wp-content/plugins/abraia/admin/settings.php+219
Trying to access array offset on value of type null
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 items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/abraia/admin/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/abraia/admin/bulk.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/abraia/admin/media.php:247
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/abraia/abraia.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: compress images, image optimizer, image compressor, optimize performance, optimize images
abraia/abraia.php Passed 13 tests
The main PHP file in "Abraia – Bulk image optimizer" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
111 characters long description:
Bulk optimize your WordPress and WooCommerce images with Abraia to speed up your website with the best quality.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,772 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 154 | 176 | 1,296 |
CSS | 1 | 0 | 0 | 256 |
PO File | 1 | 48 | 48 | 118 |
JSON | 3 | 0 | 0 | 102 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 3 | 6.38% |
▷ Public methods | 45 | 95.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.26% |
Functions | 28 | |
▷ Named functions | 26 | 92.86% |
▷ Anonymous functions | 2 | 7.14% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 0.79KB | 0.64KB | ▼ 18.24% |
assets/delete.png | 1.66KB | 1.43KB | ▼ 13.83% |
assets/logo.png | 5.46KB | 3.65KB | ▼ 33.16% |
assets/checkmark.png | 1.64KB | 1.47KB | ▼ 10.30% |