Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼640.47ms] Passed 4 tests
An overview of server-side resources used by WP Blend Photo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 35.21 ▼0.02 |
Dashboard /wp-admin | 3.15 ▲0.09 | 54.51 ▲6.69 |
Posts /wp-admin/edit.php | 3.26 ▲0.16 | 50.29 ▲4.54 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 90.89 ▼2,567.92 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 35.95 ▲1.51 |
WP Blend Photo /wp-admin/options-general.php?page=photoblend-plugin | 3.07 | 33.67 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Blend Photo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,915 ▲319 | 17.53 ▲1.60 | 12.83 ▲3.42 | 46.88 ▼4.02 |
Dashboard /wp-admin | 3,176 ▲240 | 7.90 ▲1.96 | 165.73 ▲11.78 | 106.95 ▼7.49 |
Posts /wp-admin/edit.php | 2,971 ▲232 | 4.29 ▲1.58 | 81.80 ▲8.37 | 83.95 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,622 ▲7 | 21.16 ▼0.27 | 267.63 ▼28.46 | 117.96 ▲13.28 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 4.74 ▼0.28 | 130.30 ▼26.55 | 123.19 ▲7.11 |
WP Blend Photo /wp-admin/options-general.php?page=photoblend-plugin | 1,341 | 3.40 | 71.33 | 94.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following
- 3× 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/blend-photos/includes/blp-settings-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/blend-photos/includes/blp-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blend-photos/includes/blp-settings-page.php:4
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== blend-photos ===
)
blend-photos/photoblend.php 92% from 13 tests
The primary PHP file in "WP Blend Photo" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blend-photos.php" instead of "photoblend.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,980 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 162 | 168 | 1,459 |
PHP | 3 | 54 | 23 | 332 |
CSS | 3 | 3 | 20 | 189 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There were not PNG files found in your plugin