Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.97ms] Passed 4 tests
This is a short check of server-side resources used by Protect uploads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.97 ▼1.46 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.42 ▼4.19 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.37 ▲0.94 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 87.56 ▼11.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 39.34 ▲3.09 |
Protect Uploads /wp-admin/upload.php?page=protect-uploads-settings-page | 3.30 | 50.29 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Protect uploads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▼0.12 | 1.75 ▲0.02 | 41.84 ▼2.07 |
Dashboard /wp-admin | 2,201 ▲27 | 5.61 ▲0.08 | 84.96 ▼20.67 | 41.74 ▼1.71 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.03 | 40.02 ▲2.07 | 37.50 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.17 ▼0.02 | 693.08 ▲11.80 | 52.59 ▲0.55 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.11 ▼0.05 | 109.05 ▼2.42 | 47.96 ▲0.91 |
Protect Uploads /wp-admin/upload.php?page=protect-uploads-settings-page | 914 | 2.04 | 28.98 | 31.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Alti_ProtectUploads' not found in wp-content/plugins/protect-uploads/includes/class-protect-uploads-deactivator.php:2
- > PHP Fatal error
Uncaught Error: Class 'Alti_ProtectUploads' not found in wp-content/plugins/protect-uploads/includes/class-protect-uploads-activator.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
protect-uploads/protect-uploads.php Passed 13 tests
The principal PHP file in "Protect uploads" v. 0.5.2 is loaded by WordPress automatically on each request
120 characters long description:
Protect your uploads directory. Avoid browsing of your uploads directory by adding a htaccess file or an index.php file.
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
Everything looks great! No dangerous files found in this plugin1,013 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 123 | 114 | 627 |
PO File | 3 | 102 | 105 | 386 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 1 | 2.22% |
▷ Public methods | 41 | 91.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.89% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
There are no PNG files in this plugin