84% index-wp-users-for-speed

Code Review | Index WP Users For Speed

WordPress plugin Index WP Users For Speed scored84%from 54 tests.

About plugin

  • Plugin page: index-wp-users-fo...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2022
  • Latest release: Mar 16, 2023
  • Number of updates: 15
  • Update frequency: every 22.9 days
  • Top authors: OllieJones (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /5,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▼6.98ms] Passed 4 tests

This is a short check of server-side resources used by Index WP Users For Speed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0339.47 ▲1.31
Dashboard /wp-admin3.81 ▲0.4649.57 ▼9.78
Posts /wp-admin/edit.php3.86 ▲0.5150.19 ▲0.65
Add New Post /wp-admin/post-new.php6.33 ▲0.4483.42 ▼20.09
Media Library /wp-admin/upload.php3.67 ▲0.4440.04 ▲7.10
Index For Speed /wp-admin/users.php?page=index-wp-users-for-speed3.7235.77

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
index-wp-users-for-speed-options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Index WP Users For Speed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.59 ▼0.681.66 ▼0.3142.78 ▼5.63
Dashboard /wp-admin2,204 ▲165.80 ▼0.11101.96 ▼4.5640.37 ▼2.67
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0432.64 ▼8.0235.32 ▼0.28
Add New Post /wp-admin/post-new.php1,545 ▲318.21 ▼0.15608.11 ▼9.2954.25 ▼5.01
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0898.55 ▼0.3842.54 ▼0.74
Index For Speed /wp-admin/users.php?page=index-wp-users-for-speed9352.0624.9025.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • index-wp-users-for-speed-options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'IndexWpUsersForSpeed\\Indexer' not found in wp-content/plugins/index-wp-users-for-speed/admin/progressbar.php:32
    • > PHP Warning
      Use of undefined constant INDEX_WP_USERS_FOR_SPEED_NAME - assumed 'INDEX_WP_USERS_FOR_SPEED_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/index-wp-users-for-speed/admin/progressbar.php on line 30
    • > PHP Fatal error
      Uncaught Error: Class 'IndexWpUsersForSpeed\\Task' not found in wp-content/plugins/index-wp-users-for-speed/includes/tasks/populate-meta-index-roles.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function IndexWpUsersForSpeed\\__() in wp-content/plugins/index-wp-users-for-speed/admin/views/page.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function IndexWpUsersForSpeed\\plugin_dir_path() in wp-content/plugins/index-wp-users-for-speed/includes/indexer.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function IndexWpUsersForSpeed\\add_action() in wp-content/plugins/index-wp-users-for-speed/includes/tasks/task.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'IndexWpUsersForSpeed\\Task' not found in wp-content/plugins/index-wp-users-for-speed/includes/tasks/get-editors.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'IndexWpUsersForSpeed\\Task' not found in wp-content/plugins/index-wp-users-for-speed/includes/tasks/reindex.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'IndexWpUsersForSpeed\\Task' not found in wp-content/plugins/index-wp-users-for-speed/includes/tasks/depopulate-meta-indexes.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function IndexWpUsersForSpeed\\plugin_dir_path() in wp-content/plugins/index-wp-users-for-speed/admin/user-handler.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: performance, index, users, largesite, dashboard...

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

"Index WP Users For Speed" version 1.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Speed up your WordPress site with thousands of users.

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
There were no executable files found in this plugin2,072 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP223888571,886
JavaScript21934158
CSS24228

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.81
▷ Minimum class complexity1.00
▷ Maximum class complexity127.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes16
▷ Abstract classes212.50%
▷ Concrete classes1487.50%
▷ Final classes00.00%
Methods135
▷ Static methods107.41%
▷ Public methods10477.04%
▷ Protected methods85.93%
▷ Private methods2317.04%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants10
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.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
No PNG images were found in this plugin