Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.07ms] 75% from 4 tests
Analyzing server-side resources used by Directory Index Guard
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,147.12ms on /wp-admin/tools.php?page=directory-index-guard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.43 ▲1.20 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.34 ▼6.57 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.82 ▲5.04 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 93.54 ▲0.30 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 37.33 ▲0.81 |
Directory Index Guard /wp-admin/tools.php?page=directory-index-guard | 3.48 | 1,147.12 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
directory_index_guard_scan_results |
directory_index_guard_configuration |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Directory Index Guard: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲214 | 13.48 ▼0.82 | 1.64 ▼0.25 | 37.92 ▼5.81 |
Dashboard /wp-admin | 2,370 ▲182 | 5.19 ▼0.70 | 108.67 ▲2.99 | 48.15 ▲5.53 |
Posts /wp-admin/edit.php | 2,212 ▲123 | 2.59 ▲0.54 | 50.14 ▲13.61 | 44.98 ▲10.20 |
Add New Post /wp-admin/post-new.php | 1,567 ▲53 | 18.43 ▲0.76 | 625.71 ▼74.45 | 35.83 ▼24.04 |
Media Library /wp-admin/upload.php | 1,543 ▲152 | 4.57 ▲0.26 | 106.34 ▲5.19 | 48.85 ▲0.93 |
Directory Index Guard /wp-admin/tools.php?page=directory-index-guard | 6,168 | 2.02 | 35.94 | 71.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/directory-index-guard/backup/index.php
- > /wp-content/plugins/directory-index-guard/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- License uri: Invalid URI found ("license.txt")
directory-index-guard/directory-index-guard.php 85% from 13 tests
This is the main PHP file of "Directory Index Guard" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 250 characters long)
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.5" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,035 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 661 | 248 | 2,848 |
CSS | 2 | 53 | 4 | 1,410 |
PHP | 5 | 224 | 231 | 777 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 107.00 |
▷ Minimum class complexity | 107.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 2 | 3.39% |
▷ Public methods | 45 | 76.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 23.73% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 22 | 100.00% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin