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 gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼288.25ms] Passed 4 tests
Server-side resources used by 030 Ps Display Upload_path For WP3.5
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 54.87 ▲0.05 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.71 ▼1.87 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.93 ▲3.08 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 103.54 ▼1,152.40 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 25.23 ▲1.21 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
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 030 Ps Display Upload_path For WP3.5
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲19 | 16.19 ▲0.19 | 5.85 ▼0.52 | 2.46 ▲0.25 |
Dashboard /wp-admin | 2,892 ▲37 | 6.12 ▼0.06 | 116.77 ▼35.60 | 154.74 ▼11.77 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.24 ▲0.01 | 62.69 ▲0.01 | 139.43 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,661 ▼5 | 16.86 ▼3.87 | 398.28 ▼33.26 | 157.83 ▲0.39 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▼0.02 | 137.44 ▲6.45 | 184.43 ▼2.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/030-ps-display-upload-path-for-wp35/ps-display-upload-path-for-WP3.5.php:91
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (deactivate the plugin), #2 (activate the plugin)
030-ps-display-upload-path-for-wp35/ps-display-upload-path-for-WP3.5.php 92% from 13 tests
The main PHP file in "030 Ps Display Upload_path For WP3.5" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("030-ps-display-upload-path-for-wp35.php" instead of "ps-display-upload-path-for-WP3.5.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin114 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 115 | 105 |
JavaScript | 1 | 0 | 0 | 8 |
CSS | 1 | 3 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 26.94KB | 8.43KB | ▼ 68.70% |
screenshot-1.png | 16.76KB | 6.42KB | ▼ 61.71% |