Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▲3.17ms] Passed 4 tests
This is a short check of server-side resources used by StockPack – Stock photos from Unsplash, Adobe Stock and more
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.72 ▼6.99 |
Dashboard /wp-admin | 3.94 ▲0.64 | 60.69 ▲10.20 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 52.63 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.62 | 101.82 ▲13.90 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 44.13 ▲10.97 |
StockPack /wp-admin/options-general.php?page=stockpack | 3.83 | 41.65 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 9 new options
New WordPress options |
---|
stockpack_basics |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
stockpack_debug |
db_upgraded |
stockpack_advanced |
Browser metrics Passed 4 tests
This is an overview of browser requirements for StockPack – Stock photos from Unsplash, Adobe Stock and more
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲223 | 15.30 ▲0.95 | 1.92 ▲0.20 | 43.57 ▼4.15 |
Dashboard /wp-admin | 2,387 ▲210 | 6.86 ▲1.26 | 115.89 ▲16.58 | 37.09 ▼5.44 |
Posts /wp-admin/edit.php | 2,321 ▲218 | 3.66 ▲1.69 | 51.15 ▲11.63 | 32.57 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,587 ▲61 | 18.51 ▼4.74 | 588.95 ▼100.98 | 47.44 ▼13.87 |
Media Library /wp-admin/upload.php | 1,470 ▲70 | 4.84 ▲0.54 | 83.00 ▼23.94 | 43.04 ▼5.12 |
StockPack /wp-admin/options-general.php?page=stockpack | 1,374 | 3.76 | 54.07 | 26.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- stockpack_advanced
- stockpack_basics
- widget_recent-posts
- theysaidso_admin_options
- stockpack_debug
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/stockpack/templates/dialog.php
- > /wp-content/plugins/stockpack/templates/empty.php
- > /wp-content/plugins/stockpack/templates/attribution.php
- > /wp-content/plugins/stockpack/templates/details.php
- > /wp-content/plugins/stockpack/templates/attachment.php
- > /wp-content/plugins/stockpack/templates/downloader.php
- > /wp-content/plugins/stockpack/templates/no-search.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stockpack/vendor/tareq1988/wordpress-settings-api-class/src/class.settings-api.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/stockpack/extra/captions.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/stockpack/extra/captions.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/stockpack/extra/captions.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stockpack/vendor/tareq1988/wordpress-settings-api-class/example/procedural-example.php:270
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
These attributes need your attention:
- Screenshots: A description for screenshot #4 is required in stockpack/assets to your readme.txt
stockpack/stockpack.php Passed 13 tests
The principal PHP file in "StockPack – Stock photos from Unsplash, Adobe Stock and more" v. 3.3.7 is loaded by WordPress automatically on each request
116 characters long description:
Direct image search in WordPress for Unsplash, Adobe Stock, Getty Images, iStock, Pixabay, Pexels and Deposit Photos
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
Good job! No executable or dangerous file extensions detected16,558 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 0 | 0 | 13,027 |
PHP | 29 | 621 | 857 | 3,345 |
Markdown | 3 | 59 | 0 | 155 |
JavaScript | 4 | 7 | 3 | 26 |
CSS | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 16 | 9.20% |
▷ Public methods | 143 | 82.18% |
▷ Protected methods | 6 | 3.45% |
▷ Private methods | 25 | 14.37% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.49MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/balloons.png | 16.98KB | 7.03KB | ▼ 58.60% |
vendor/tareq1988/wordpress-settings-api-class/screenshot-1.png | 389.59KB | 115.93KB | ▼ 70.24% |
images/unicorn.png | 13.73KB | 7.00KB | ▼ 49.03% |
images/icecream.png | 17.16KB | 7.11KB | ▼ 58.60% |
images/moon.png | 10.88KB | 5.11KB | ▼ 53.00% |