Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/pixabay-images/pixabay-images.php+34
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.80MB] [CPU: ▼190.98ms] Passed 4 tests
A check of server-side resources used by Pixabay Images
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼1.01 | 6.11 ▼29.70 |
Dashboard /wp-admin | 1.85 ▼1.21 | 6.96 ▼40.38 |
Posts /wp-admin/edit.php | 1.85 ▼1.26 | 5.86 ▼39.40 |
Add New Post /wp-admin/post-new.php | 1.85 ▼3.59 | 6.20 ▼654.44 |
Media Library /wp-admin/upload.php | 1.85 ▼1.16 | 9.36 ▼28.61 |
Pixabay Images /wp-admin/options-general.php?page=pixabay_images_settings | 1.85 | 6.38 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pixabay Images
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲102 | 16.17 ▲0.67 | 7.17 ▼1.61 | 45.22 ▼7.27 |
Dashboard /wp-admin | 2,994 ▲60 | 5.98 ▲0.03 | 149.86 ▼17.50 | 113.86 ▼12.54 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.00 | 70.89 ▼2.36 | 90.67 ▼5.11 |
Add New Post /wp-admin/post-new.php | 1,503 ▼180 | 18.40 ▼0.06 | 368.15 ▼27.45 | 111.31 ▲0.38 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.01 ▼0.01 | 154.30 ▲0.14 | 125.94 ▲1.42 |
Pixabay Images /wp-admin/options-general.php?page=pixabay_images_settings | 1,222 | 2.21 | 59.44 | 100.70 |
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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/pixabay-images/pixabay-images.php+34
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pixabay_images_settings
- > Notice in wp-content/plugins/pixabay-images/settings.php+44
Trying to access array offset on value of type bool
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
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 add_action() in wp-content/plugins/pixabay-images/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pixabay-images/pixabay-images.php:16
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
pixabay-images/pixabay-images.php Passed 13 tests
The main file in "Pixabay Images" v. 3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
Find quality public domain images from Pixabay and upload them with just one click.
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
Success! There were no dangerous files found in this plugin388 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 52 | 24 | 253 |
PO File | 3 | 51 | 0 | 117 |
SVG | 2 | 0 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/favicon.png | 0.22KB | 0.30KB | 0.00% |
img/search.png | 0.37KB | 0.38KB | 0.00% |
img/settings.png | 0.25KB | 0.30KB | 0.00% |
img/logo.png | 7.03KB | 7.12KB | 0.00% |