10% step-index-for-relevanssi

Code Review | Step Index For relevanssi

WordPress plugin Step Index For relevanssi scored10%from 54 tests.

About plugin

  • Plugin page: step-index-for-re...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 23, 2017
  • Latest release: Dec 26, 2017
  • Number of updates: 3
  • Update frequency: every 62.4 days
  • Top authors: jamesdlow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/step-index-for-relevanssi/step-index-for-relevanssi.php+18
    Use of undefined constant RelevanssiStepIndex - assumed 'RelevanssiStepIndex' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.95MB] [CPU: ▼62.57ms] Passed 4 tests

This is a short check of server-side resources used by Step Index For relevanssi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.68 ▼37.39
Dashboard /wp-admin2.07 ▼1.275.53 ▼64.00
Posts /wp-admin/edit.php2.08 ▼1.296.83 ▼51.29
Add New Post /wp-admin/post-new.php2.08 ▼3.825.87 ▼97.61
Media Library /wp-admin/upload.php2.08 ▼1.165.24 ▼28.80

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Step Index For relevanssi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.001.93 ▲0.0543.18 ▼0.44
Dashboard /wp-admin2,198 ▲185.64 ▼0.0392.08 ▼2.1239.43 ▼7.79
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0337.14 ▼5.6032.85 ▼3.12
Add New Post /wp-admin/post-new.php1,526 ▼223.50 ▲0.36699.90 ▼16.6752.78 ▼2.92
Media Library /wp-admin/upload.php1,400 ▲34.17 ▲0.0599.15 ▼5.4546.42 ▲3.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/step-index-for-relevanssi/step-index-for-relevanssi.php+18
    Use of undefined constant RelevanssiStepIndex - assumed 'RelevanssiStepIndex' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/step-index-for-relevanssi/step-index-for-relevanssi.php:18

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: step, continue, automatic, index, relevanssi...

step-index-for-relevanssi/step-index-for-relevanssi.php Passed 13 tests

This is the main PHP file of "Step Index For relevanssi" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Automatically reindex in steps for big indexes on relevanssi

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10139
PHP11920

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin