Benchmarks
Plugin footprint Passed 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.03MB] [CPU: ▼141.54ms] Passed 4 tests
An overview of server-side resources used by Pexels: Free Stock Photos
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 36.95 ▲14.46 |
Dashboard /wp-admin | 3.09 ▲0.04 | 47.72 ▲0.39 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 47.15 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 92.91 ▼570.89 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 39.08 ▲3.91 |
Pexels Photos /wp-admin/upload.php?page=pexels_fsp_images_settings | 2.98 | 29.57 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Pexels: Free Stock Photos
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲87 | 15.70 ▲0.22 | 7.52 ▼1.09 | 46.39 ▼0.95 |
Dashboard /wp-admin | 2,997 ▲63 | 6.04 ▲0.10 | 140.80 ▼15.38 | 118.89 ▼4.82 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.00 | 66.58 ▼3.50 | 93.61 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,686 ▲82 | 18.62 ▼0.26 | 383.77 ▼1.81 | 111.53 ▲3.98 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.03 ▲0.00 | 148.73 ▼5.27 | 129.87 ▲8.18 |
Pexels Photos /wp-admin/upload.php?page=pexels_fsp_images_settings | 1,164 | 2.23 | 59.85 | 92.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/upload.php?page=pexels_fsp_images_settings
- > Notice in wp-content/plugins/wp-pexels-free-stock-photos/settings.php+75
Undefined index: post_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=pexels_fsp_images_settings
- > Notice in wp-content/plugins/wp-pexels-free-stock-photos/settings.php+37
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 take a closer look at 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/wp-pexels-free-stock-photos/settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-pexels-free-stock-photos/index.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
9 plugin tags: unsplash, pexels, stock photos, free images, pixabay...
wp-pexels-free-stock-photos/index.php 77% from 13 tests
"Pexels: Free Stock Photos" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 269 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-pexels-free-stock-photos.php" instead of "index.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected233 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 53 | 215 |
SVG | 2 | 0 | 0 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/pexels-logo.png | 4.86KB | 3.20KB | ▼ 34.18% |