Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼150.46ms] Passed 4 tests
An overview of server-side resources used by Add Index To Autoload
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 25.98 ▲4.55 |
Dashboard /wp-admin | 3.14 ▲0.08 | 32.17 ▼5.98 |
Posts /wp-admin/edit.php | 3.25 ▲0.15 | 31.13 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 68.39 ▼593.83 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 21.80 ▼0.96 |
Add Index To Autoload /wp-admin/tools.php?page=add-index-to-autoload | 3.08 | 20.26 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Add Index To Autoload: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,682 ▲81 | 15.94 ▼0.06 | 6.73 ▲1.67 | 80.83 ▲5.04 |
Dashboard /wp-admin | 2,949 ▲53 | 6.18 ▼0.04 | 120.89 ▼14.55 | 172.12 ▲1.40 |
Posts /wp-admin/edit.php | 2,756 ▲16 | 3.41 ▲0.17 | 68.92 ▲4.46 | 138.38 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,889 ▼1,918 | 21.14 ▲2.81 | 390.08 ▼95.28 | 176.65 ▲6.18 |
Media Library /wp-admin/upload.php | 1,765 ▲13 | 5.61 ▲0.10 | 156.96 ▲16.79 | 187.93 ▼0.49 |
Add Index To Autoload /wp-admin/tools.php?page=add-index-to-autoload | 1,317 | 2.79 | 67.87 | 135.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: database speed, index autoload, database, index-autoload
add-index-to-autoload/add-index-to-autoload.php Passed 13 tests
The main PHP file in "Add Index To Autoload" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
This tool will speed up your database queries by adding an index to the “autoload” field.
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 detected870 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 147 | 354 | 441 |
JavaScript | 1 | 57 | 41 | 257 |
CSS | 1 | 38 | 14 | 172 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.79% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/aital-logo.png | 3.04KB | 2.30KB | ▼ 24.32% |