Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/uploads-protector/uploads-protector.php+62
Undefined index: path
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.07ms] Passed 4 tests
Analyzing server-side resources used by Uploads Protector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.76 ▼1.76 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.97 ▼11.86 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.75 ▲5.83 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.25 ▼5.32 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 33.95 ▼5.34 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- You have illegally modified 1 file (0.97KB) outside of "wp-content/plugins/uploads-protector/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Uploads Protector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.82 ▲0.29 | 2.01 ▲0.29 | 43.29 ▼1.52 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▼0.00 | 93.18 ▼22.57 | 37.30 ▼6.41 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.00 | 38.49 ▼4.04 | 34.70 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 18.50 ▲0.27 | 603.60 ▼57.55 | 48.45 ▼8.33 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.23 ▲0.01 | 100.57 ▲0.21 | 43.31 ▲0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
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 just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is missing
uploads-protector/uploads-protector.php Passed 13 tests
"Uploads Protector" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
35 characters long description:
Protect files in uploads directory.
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
Good job! No executable or dangerous file extensions detected134 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 43 | 10 | 134 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 31.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 68.75% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected