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.11MB] [CPU: ▲2.39ms] Passed 4 tests
A check of server-side resources used by Restrict File Access
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.00 ▼6.66 |
Dashboard /wp-admin | 3.42 ▲0.11 | 56.47 ▲10.33 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 57.20 ▲5.93 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 102.90 ▲5.70 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.55 ▲4.59 |
Geschützte Dateien /wp-admin/upload.php?page=restrict-file-access | 3.31 | 39.43 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
restrict-file-access |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Restrict File Access
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.17 | 4.96 ▲3.00 | 49.35 ▲8.14 |
Dashboard /wp-admin | 2,207 ▲19 | 5.86 ▲0.95 | 109.78 ▼5.90 | 41.38 ▼6.61 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.08 | 40.75 ▲2.66 | 35.22 ▲4.56 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 18.31 ▲0.80 | 637.78 ▲11.43 | 53.49 ▼1.07 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.30 ▲0.10 | 96.81 ▼8.03 | 43.56 ▲1.59 |
Geschützte Dateien /wp-admin/upload.php?page=restrict-file-access | 1,044 | 2.05 | 32.72 | 35.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- restrict-file-access
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/restrict-file-access/url_rewrite/url_rewrite.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
restrict-file-access/index.php 92% from 13 tests
"Restrict File Access" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("restrict-file-access.php" instead of "index.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
Success! There were no dangerous files found in this plugin609 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 69 | 78 | 505 |
CSS | 1 | 9 | 0 | 64 |
JavaScript | 1 | 8 | 3 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/ic_copy.png | 0.24KB | 0.19KB | ▼ 21.14% |
admin/ic_success.png | 0.90KB | 0.75KB | ▼ 17.30% |
admin/ic_delete.png | 0.91KB | 0.76KB | ▼ 16.47% |