Benchmarks
Plugin footprint 82% from 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.49MB] [CPU: ▲5.69ms] 75% from 4 tests
Server-side resources used by Prevent Direct Access - Protect WordPress Files
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 867.37ms on /wp-admin/admin.php?page=wp_pda_options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.49 | 47.61 ▲6.50 |
Dashboard /wp-admin | 3.86 ▲0.47 | 67.83 ▲0.11 |
Posts /wp-admin/edit.php | 3.89 ▲0.50 | 63.28 ▲15.16 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.54 | 109.61 ▲7.81 |
Media Library /wp-admin/upload.php | 3.79 ▲0.52 | 46.43 ▲8.34 |
Go Pro /wp-admin/admin.php?page=wp_pda_gopro | 3.72 | 52.68 |
Settings /wp-admin/admin.php?page=wp_pda_options | 3.77 | 867.37 |
Server storage [IO: ▲5.96MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Illegal file modification found: 1 file (0.99KB) outside of "wp-content/plugins/prevent-direct-access/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 107 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_prevent_direct_access_free |
New WordPress options |
---|
FREE_PDA_SETTINGS |
can_compress_scripts |
updated_htaccess_success |
pda_options |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
pda_jal_db_version_free |
Browser metrics Passed 4 tests
Prevent Direct Access - Protect WordPress Files: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲38 | 14.46 ▼0.07 | 1.78 ▼0.34 | 47.71 ▲5.71 |
Dashboard /wp-admin | 2,230 ▲50 | 5.60 ▼0.01 | 83.16 ▼11.64 | 40.86 ▲3.59 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.00 ▲0.05 | 37.37 ▲1.28 | 35.88 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,564 ▲36 | 23.02 ▼0.19 | 649.56 ▼53.97 | 44.18 ▼14.94 |
Media Library /wp-admin/upload.php | 1,497 ▲100 | 6.40 ▲1.98 | 134.35 ▲32.87 | 45.86 ▼2.98 |
Go Pro /wp-admin/admin.php?page=wp_pda_gopro | 1,324 | 1.81 | 27.45 | 58.13 |
Settings /wp-admin/admin.php?page=wp_pda_options | 1,151 | 2.05 | 28.06 | 41.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- updated_htaccess_success
- widget_recent-posts
- FREE_PDA_SETTINGS
- pda_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/prevent-direct-access/includes/function.php
- 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/prevent-direct-access/includes/views/view-prevent-direct-access-lite-remove-license-and-all-data.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/prevent-direct-access/includes/views/view-prevent-direct-access-lite-ptotect-file.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/prevent-direct-access/includes/views/view-prevent-direct-access-lite-prevent-right-click.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/prevent-direct-access/includes/views/view-prevent-direct-access-lite-prevent-hotlinking.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/prevent-direct-access/includes/views/view-prevent-direct-access-lite-no-access-page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/prevent-direct-access/includes/partials/subscribe.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/prevent-direct-access/includes/views/view-prevent-direct-access-lite-auto-create-private-link.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/prevent-direct-access/includes/views/view-prevent-direct-access-lite-block-access-info-file.php:17
- > PHP Fatal error
Uncaught Error: Class 'Pda_Helper' not found in wp-content/plugins/prevent-direct-access/includes/views/view-prevent-direct-access-lite-file-access-permission.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/prevent-direct-access/includes/views/view-prevent-direct-access-lite-private-url-prefix.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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: copy protection, protection, downloads, folder protection, uploads
prevent-direct-access/prevent-direct-access.php 92% from 13 tests
"Prevent Direct Access - Protect WordPress Files" version 2.8.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 206 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin16,167 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 1,747 | 48 | 8,920 |
PHP | 42 | 595 | 1,248 | 3,673 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 10 | 42 | 83 | 489 |
PO File | 8 | 119 | 151 | 414 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 20 | 12.99% |
▷ Public methods | 148 | 96.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 3.90% |
Functions | 40 | |
▷ Named functions | 35 | 87.50% |
▷ Anonymous functions | 5 | 12.50% |
Constants | 22 | |
▷ Global constants | 8 | 36.36% |
▷ Class constants | 14 | 63.64% |
▷ Public constants | 14 | 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
11 PNG files occupy 0.45MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/avatar/default3.png | 0.53KB | 0.17KB | ▼ 68.32% |
public/assets/avatar/deborah-128.png | 28.56KB | 9.61KB | ▼ 66.37% |
public/assets/avatar/default2.png | 5.24KB | 2.54KB | ▼ 51.50% |
public/assets/pda-gold-affiliate-banner-v5.png | 142.24KB | 77.54KB | ▼ 45.49% |
public/assets/pda-gold-affiliate-banner(1200x480).png | 178.56KB | 100.18KB | ▼ 43.90% |