68% index-wp-mysql-for-speed

Code Review | Index WP MySQL For Speed

WordPress plugin Index WP MySQL For Speed scored68%from 54 tests.

About plugin

  • Plugin page: index-wp-mysql-fo...
  • Plugin version: 1.4.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Jun 13, 2021
  • Latest release: Aug 7, 2023
  • Number of updates: 43
  • Update frequency: every 18.3 days
  • Top authors: OllieJones (100%)

Code review

54 tests

User reviews

58 reviews

Install metrics

20,000+ active /127,056 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.52MB] [CPU: ▲2.53ms] Passed 4 tests

Server-side resources used by Index WP MySQL For Speed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.12 ▼2.23
Dashboard /wp-admin5.31 ▲2.0159.29 ▲6.89
Posts /wp-admin/edit.php5.42 ▲2.0755.30 ▲10.94
Add New Post /wp-admin/post-new.php7.89 ▲2.0190.45 ▼5.47
Media Library /wp-admin/upload.php5.23 ▲2.0045.26 ▲10.98
Index MySQL /wp-admin/tools.php?page=imfs_settings9.4292.18

Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • You have illegally modified 1 file (3.61KB) outside of "wp-content/plugins/index-wp-mysql-for-speed/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/index-wp-mysql-for-speed-update-filter.php
Filesystem: 187 new files
Database: no new tables, 8 new options
New WordPress options
imfsQueryMonitor
ImfsPage
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Index WP MySQL For Speed: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.22 ▼1.151.65 ▼0.0240.59 ▼7.99
Dashboard /wp-admin2,228 ▲404.83 ▼0.98103.83 ▼12.8241.59 ▼5.76
Posts /wp-admin/edit.php2,107 ▲182.06 ▲0.0638.19 ▼1.1333.30 ▼3.08
Add New Post /wp-admin/post-new.php1,546 ▲2323.18 ▼0.15684.64 ▲29.6055.68 ▼7.71
Media Library /wp-admin/upload.php1,407 ▲164.20 ▼0.0199.83 ▲5.3744.67 ▲2.92
Index MySQL /wp-admin/tools.php?page=imfs_settings1,2142.3536.7137.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/index-wp-mysql-for-speed/uninstall.php+13
    unlink(wp-content/mu-plugins/index-wp-mysql-for-speed-update-filter.php): No such file or directory
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/index-wp-mysql-for-speed/code/assets/mu/index-wp-mysql-for-speed-update-filter.php
  • 149× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/_abstract/_view/AdminPageFramework_TabNavigationBar.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_FieldType' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/field_type/AdminPageFramework_FieldType_default.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/AdminPageFramework_Form_View___Description.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_Form_View___Attribute_FieldContainer_Base' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fields.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_model/delegate/AdminPageFramework_Model_Menu__RegisterMenu.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_Model__FormSubmission__Validator_Base' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/_model/delegate/validaor/AdminPageFramework_Model__FormSubmission__Validator__Export.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_Input_Base' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/input/AdminPageFramework_Input_select.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___SectionCaption.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_Factory' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/admin_page/AdminPageFramework.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Imfs_AdminPageFramework_FieldType' not found in wp-content/plugins/index-wp-mysql-for-speed/afp/factory/_common/form/field_type/AdminPageFramework_FieldType_radio.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: performance, database, index, wp-cli, mysql...

index-wp-mysql-for-speed/index-wp-mysql-for-speed.php Passed 13 tests

"Index WP MySQL For Speed" version 1.4.14's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
Speed up your WordPress site by adding high-performance keys (database indexes) to your MySQL database tables.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected18,241 lines of code in 177 files:
LanguageFilesBlank linesComment linesLines of code
PHP1731,2463,05817,485
JavaScript258122569
CSS26311187

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.10
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes251
▷ Abstract classes5622.31%
▷ Concrete classes19577.69%
▷ Final classes21.03%
Methods1,616
▷ Static methods29418.19%
▷ Public methods88454.70%
▷ Protected methods23914.79%
▷ Private methods49330.51%
Functions21
▷ Named functions1990.48%
▷ Anonymous functions29.52%
Constants26
▷ Global constants1453.85%
▷ Class constants1246.15%
▷ Public constants12100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
code/assets/datatables/DataTables-1.11.3/images/sort_desc_disabled.png0.14KB0.25KB0.00%
code/assets/datatables/DataTables-1.11.3/images/sort_asc_disabled.png0.14KB0.25KB0.00%
code/assets/datatables/DataTables-1.11.3/images/sort_desc.png0.15KB0.25KB0.00%
code/assets/datatables/DataTables-1.11.3/images/sort_both.png0.20KB0.29KB0.00%
code/assets/datatables/DataTables-1.11.3/images/sort_asc.png0.16KB0.25KB0.00%