Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.29ms] Passed 4 tests
A check of server-side resources used by WP Original Media Path
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 33.22 ▼9.89 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.70 ▼1.68 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.58 ▲4.85 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.07 | 92.57 ▼2.44 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.04 ▲8.30 |
WP Original Media Path /wp-admin/options-general.php?page=wpomp-options | 3.28 | 30.47 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Original Media Path
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.17 ▼1.38 | 1.47 ▼0.50 | 42.47 ▼2.21 |
Dashboard /wp-admin | 2,210 ▲19 | 5.03 ▼0.86 | 100.70 ▼6.92 | 39.56 ▼4.30 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▲0.03 | 39.98 ▲2.16 | 35.62 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,549 ▲29 | 18.16 ▼5.24 | 604.97 ▼76.73 | 65.44 ▲8.80 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.04 | 94.68 ▲0.07 | 40.24 ▼4.14 |
WP Original Media Path /wp-admin/options-general.php?page=wpomp-options | 823 | 2.08 | 26.16 | 30.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: media, subdomain, path, upload
wp-original-media-path/wp_original_media_path.php 92% from 13 tests
The main PHP file in "WP Original Media Path" ver. 2.4.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-original-media-path.php" instead of "wp_original_media_path.php")
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
Good job! No executable or dangerous file extensions detected315 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 73 | 19 | 290 |
JavaScript | 1 | 5 | 0 | 18 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 19 | |
▷ Static methods | 6 | 31.58% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin