Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.85ms] Passed 4 tests
Server-side resources used by Add Index To Autoload
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.58 ▼4.38 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.65 ▼2.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.74 ▲1.20 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.84 ▲2.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.04 ▲2.04 |
Add Index To Autoload /wp-admin/tools.php?page=add-index-to-autoload | 3.28 | 29.34 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Add Index To Autoload
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.42 ▼0.96 | 1.74 ▼0.30 | 42.33 ▼4.52 |
Dashboard /wp-admin | 2,219 ▲31 | 4.96 ▼0.92 | 115.57 ▲0.18 | 42.34 ▼1.87 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.20 ▲0.15 | 42.94 ▲3.53 | 35.73 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.28 ▲5.76 | 631.44 ▼42.62 | 58.39 ▼2.33 |
Media Library /wp-admin/upload.php | 1,398 ▲16 | 4.35 ▲0.12 | 100.05 ▲1.32 | 42.48 ▼1.53 |
Add Index To Autoload /wp-admin/tools.php?page=add-index-to-autoload | 977 | 2.31 | 35.32 | 51.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: index autoload, index-autoload, database speed, database
add-index-to-autoload/add-index-to-autoload.php Passed 13 tests
"Add Index To Autoload" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were 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
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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% |