79% swiftninjapro-smart-search

Code Review | Smart Search URL Auto Correct

WordPress plugin Smart Search URL Auto Correct scored79%from 54 tests.

About plugin

  • Plugin page: swiftninjapro-sma...
  • Plugin version: 1.3.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Jun 13, 2019
  • Latest release: Oct 22, 2020
  • Number of updates: 30
  • Update frequency: every 16.6 days
  • Top authors: swiftninjapro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲1.04ms] Passed 4 tests

A check of server-side resources used by Smart Search URL Auto Correct
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.46 ▲2.81
Dashboard /wp-admin3.34 ▲0.0365.87 ▲10.57
Posts /wp-admin/edit.php3.39 ▲0.0354.66 ▲2.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.87 ▼2.93
Media Library /wp-admin/upload.php3.26 ▲0.0339.35 ▲1.41
Smart Search /wp-admin/admin.php?page=swiftninjapro-smart-search3.3132.04
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings3.2335.34

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smart Search URL Auto Correct
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.28 ▲0.001.80 ▲0.1745.92 ▲0.20
Dashboard /wp-admin2,209 ▲325.56 ▼0.0293.94 ▲2.0362.00 ▲19.49
Posts /wp-admin/edit.php2,126 ▲232.00 ▼0.0138.51 ▼7.1034.75 ▼7.30
Add New Post /wp-admin/post-new.php1,565 ▲3923.44 ▲0.05649.32 ▼53.8649.83 ▼15.49
Media Library /wp-admin/upload.php1,429 ▲294.10 ▼0.10103.54 ▼3.4863.84 ▲16.63
Smart Search /wp-admin/admin.php?page=swiftninjapro-smart-search9502.0129.5939.64
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings7972.0127.7529.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=swiftninjapro-smart-search
    • > Warning in wp-content/plugins/swiftninjapro-smart-search/templates/admin.php+94
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/swiftninjapro-smart-search/templates/settings-info.php
    • > /wp-content/plugins/swiftninjapro-smart-search/templates/admin.php
    • > /wp-content/plugins/swiftninjapro-smart-search/main.php
    • > /wp-content/plugins/swiftninjapro-smart-search/swiftninjapro-smart-search.php

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: type-correction, reduce-404, smart, url, search...

swiftninjapro-smart-search/swiftninjapro-smart-search.php Passed 13 tests

"Smart Search URL Auto Correct" version 1.3.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
110 characters long description:
Reduce 404 errors by correcting typos, simplifying words, and compering them to a list of your existing pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected616 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP511234616

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity52.50
▷ Minimum class complexity19.00
▷ Maximum class complexity86.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
assets/settings_icon.png3.27KB1.85KB▼ 43.48%