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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 44.46 ▲2.81 |
Dashboard /wp-admin | 3.34 ▲0.03 | 65.87 ▲10.57 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 54.66 ▲2.88 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.87 ▼2.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.35 ▲1.41 |
Smart Search /wp-admin/admin.php?page=swiftninjapro-smart-search | 3.31 | 32.04 |
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings | 3.23 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.28 ▲0.00 | 1.80 ▲0.17 | 45.92 ▲0.20 |
Dashboard /wp-admin | 2,209 ▲32 | 5.56 ▼0.02 | 93.94 ▲2.03 | 62.00 ▲19.49 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 2.00 ▼0.01 | 38.51 ▼7.10 | 34.75 ▼7.30 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 23.44 ▲0.05 | 649.32 ▼53.86 | 49.83 ▼15.49 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.10 ▼0.10 | 103.54 ▼3.48 | 63.84 ▲16.63 |
Smart Search /wp-admin/admin.php?page=swiftninjapro-smart-search | 950 | 2.01 | 29.59 | 39.64 |
SwiftNinjaPro Settings /wp-admin/admin.php?page=swiftninjapro-settings | 797 | 2.01 | 27.75 | 29.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 112 | 34 | 616 |
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 code | 0.43 |
Average class complexity | 52.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/settings_icon.png | 3.27KB | 1.85KB | ▼ 43.48% |