90% add-index-to-autoload

Code Review | Add Index To Autoload

WordPress plugin Add Index To Autoload scored90%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: 6.3.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

300+ active /5,833 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.58 ▼4.38
Dashboard /wp-admin3.33 ▲0.0243.65 ▼2.27
Posts /wp-admin/edit.php3.38 ▲0.0246.74 ▲1.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.84 ▲2.80
Media Library /wp-admin/upload.php3.25 ▲0.0236.04 ▲2.04
Add Index To Autoload /wp-admin/tools.php?page=add-index-to-autoload3.2829.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.42 ▼0.961.74 ▼0.3042.33 ▼4.52
Dashboard /wp-admin2,219 ▲314.96 ▼0.92115.57 ▲0.1842.34 ▼1.87
Posts /wp-admin/edit.php2,102 ▲132.20 ▲0.1542.94 ▲3.5335.73 ▲0.10
Add New Post /wp-admin/post-new.php1,524 ▲1023.28 ▲5.76631.44 ▼42.6258.39 ▼2.33
Media Library /wp-admin/upload.php1,398 ▲164.35 ▲0.12100.05 ▲1.3242.48 ▼1.53
Add Index To Autoload /wp-admin/tools.php?page=add-index-to-autoload9772.3135.3251.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:
LanguageFilesBlank linesComment linesLines of code
PHP10147354441
JavaScript15741257
CSS13814172

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 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%