100% add-index-to-autoload

Code Review | Add Index To Autoload

WordPress plugin Add Index To Autoload scored 100% from 54 tests.

About plugin

  • Plugin page: add-index-to-auto...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7
  • WordPress version: 5.8.1
  • First release: Feb 4, 2019
  • Latest release: Mar 4, 2021
  • Number of updates: 11
  • Update frequency: every 69.0 days
  • Top authors: raidboxes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 4,557 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.0825.98 ▲4.55
Dashboard /wp-admin3.14 ▲0.0832.17 ▼5.98
Posts /wp-admin/edit.php3.25 ▲0.1531.13 ▼1.08
Add New Post /wp-admin/post-new.php5.50 ▲0.0768.39 ▼593.83
Media Library /wp-admin/upload.php3.09 ▲0.0821.80 ▼0.96
Add Index To Autoload /wp-admin/tools.php?page=add-index-to-autoload3.0820.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,682 ▲8115.94 ▼0.066.73 ▲1.6780.83 ▲5.04
Dashboard /wp-admin2,949 ▲536.18 ▼0.04120.89 ▼14.55172.12 ▲1.40
Posts /wp-admin/edit.php2,756 ▲163.41 ▲0.1768.92 ▲4.46138.38 ▼1.12
Add New Post /wp-admin/post-new.php1,889 ▼1,91821.14 ▲2.81390.08 ▼95.28176.65 ▲6.18
Media Library /wp-admin/upload.php1,765 ▲135.61 ▲0.10156.96 ▲16.79187.93 ▼0.49
Add Index To Autoload /wp-admin/tools.php?page=add-index-to-autoload1,3172.7967.87135.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:
LanguageFilesBlank linesComment linesLines of code
PHP10147354441
JavaScript15741257
CSS13814172

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 code0.21
Average class complexity4.67
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2586.21%
▷ Protected methods00.00%
▷ Private methods413.79%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/img/aital-logo.png3.04KB2.30KB▼ 24.32%