Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.85ms] Passed 4 tests
Server-side resources used by Unique File
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 43.20 ▼2.14 |
Dashboard /wp-admin | 3.38 ▼0.01 | 49.04 ▼15.47 |
Posts /wp-admin/edit.php | 3.43 ▲0.03 | 53.55 ▲3.59 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 91.15 ▼17.49 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 40.40 ▼0.30 |
Unique File /wp-admin/options-general.php?page=unique-file/unique-file.php | 3.27 | 34.84 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 11 new options
New WordPress options |
---|
unique_file_rename_md5 |
unique_file_version |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
unique_file_must_one |
db_upgraded |
unique_file_prevent_deletion |
unique_file_without_siteid |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Unique File
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.27 ▲0.03 | 2.00 ▲0.28 | 44.21 ▼1.46 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.05 | 93.61 ▲6.08 | 39.21 ▼4.84 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.03 | 34.09 ▼2.50 | 34.26 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.21 ▲0.22 | 712.56 ▲10.84 | 57.56 ▲1.97 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.19 ▼0.02 | 101.99 ▼26.21 | 47.80 ▼5.17 |
Unique File /wp-admin/options-general.php?page=unique-file/unique-file.php | 896 | 1.99 | 23.32 | 26.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 11 options in the database
- unique_file_rename_md5
- unique_file_must_one
- can_compress_scripts
- unique_file_version
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- unique_file_prevent_deletion
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/unique-file/unique-file.php:13
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: file, md5, rename, media, unique...
unique-file/unique-file.php Passed 13 tests
The main file in "Unique File" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Only store one when the uploaded file is same
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected162 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 17 | 162 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin