Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼992.72ms] Passed 4 tests
Server-side resources used by Retail ready photos by Pixc
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 26.82 ▲5.13 |
Dashboard /wp-admin | 3.06 ▲0.00 | 42.00 ▲0.05 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 33.68 ▼8.56 |
Add New Post /wp-admin/post-new.php | 5.41 ▼0.01 | 81.97 ▼3,964.50 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 31.30 ▲2.15 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Retail ready photos by Pixc
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,667 ▲61 | 15.81 ▲0.30 | 9.98 ▲0.94 | 46.41 ▼3.86 |
Dashboard /wp-admin | 2,915 ▲62 | 5.96 ▲0.10 | 134.89 ▼5.25 | 105.53 ▲9.93 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.69 ▲0.00 | 61.68 ▼8.09 | 95.77 ▲2.56 |
Add New Post /wp-admin/post-new.php | 1,853 ▼185 | 18.93 ▼0.41 | 350.86 ▼1.76 | 106.95 ▲3.16 |
Media Library /wp-admin/upload.php | 1,775 ▲3 | 5.02 ▲0.04 | 144.29 ▼5.96 | 117.90 ▲15.81 |
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 Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Main app dashboard), #2 (Submitting order), #3 (Completed order review)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== optimized-product-photos ===
)
optimized-product-photos/optimized-product-photos.php 92% from 13 tests
The main PHP file in "Retail ready photos by Pixc" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin283 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 64 | 12 | 251 |
JavaScript | 1 | 2 | 0 | 19 |
CSS | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 17 | 94.44% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 93.34KB | 36.12KB | ▼ 61.30% |
assets/icon-256x256.png | 8.17KB | 3.71KB | ▼ 54.57% |
screenshot-3.png | 150.98KB | 55.96KB | ▼ 62.94% |
screenshot-1.png | 36.26KB | 14.76KB | ▼ 59.29% |