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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.78ms] Passed 4 tests
A check of server-side resources used by BF Advanced Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.21 ▲2.40 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.43 ▼13.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.48 ▼3.79 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.22 ▼8.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.68 ▲4.11 |
BF Advanced Images Options /wp-admin/tools.php?page=bf-advanced-images | 3.26 | 33.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BF Advanced Images
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.25 ▲0.07 | 1.63 ▼0.05 | 41.92 ▼0.07 |
Dashboard /wp-admin | 2,204 ▲27 | 5.59 ▼0.08 | 84.98 ▼6.86 | 40.30 ▲0.23 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.16 ▲0.21 | 42.14 ▲4.96 | 35.34 ▲2.91 |
Add New Post /wp-admin/post-new.php | 1,542 ▲5 | 18.44 ▲0.02 | 630.87 ▲8.33 | 69.59 ▲1.27 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▼0.02 | 98.23 ▼4.35 | 44.54 ▲2.48 |
BF Advanced Images Options /wp-admin/tools.php?page=bf-advanced-images | 902 | 1.99 | 25.04 | 32.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'bfAdvancedImages\\core\\BFImagesDirectoryOptions' not found in wp-content/plugins/bf-advanced-images/templates/admin/bf-advanced-images-admin-display.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: "/"
bf-advanced-images/bf-advanced-images.php Passed 13 tests
The main PHP script in "BF Advanced Images" version 1.0.1 is automatically included on every request by WordPress
45 characters long description:
Creating images on demand, image optimization
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,105 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 272 | 410 | 1,022 |
Markdown | 1 | 33 | 0 | 56 |
JSON | 2 | 0 | 0 | 19 |
JavaScript | 1 | 0 | 0 | 8 |
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.50 |
Average class complexity | 11.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 19 | 26.03% |
▷ Public methods | 69 | 94.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.48% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin