Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼325.61ms] Passed 4 tests
This is a short check of server-side resources used by Better Search Replace
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.23 | 60.40 ▲0.60 |
Dashboard /wp-admin | 3.58 ▲0.17 | 37.73 ▼41.51 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 40.48 ▼0.80 |
Add New Post /wp-admin/post-new.php | 7.05 ▲0.07 | 97.13 ▼1,260.72 |
Media Library /wp-admin/upload.php | 3.46 ▲0.16 | 28.31 ▲3.54 |
Better Search Replace /wp-admin/tools.php?page=better-search-replace | 3.47 | 64.94 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Better Search Replace
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.85 ▼0.22 | 6.08 ▼0.39 | 2.64 ▼0.03 |
Dashboard /wp-admin | 2,897 ▲36 | 6.09 ▼0.10 | 123.96 ▼12.06 | 204.22 ▲38.34 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.22 ▼0.00 | 63.34 ▼2.81 | 169.75 ▲22.24 |
Add New Post /wp-admin/post-new.php | 1,692 ▲2 | 20.78 ▼0.25 | 430.12 ▼14.07 | 161.36 ▼90.48 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.51 ▼0.05 | 148.59 ▲1.93 | 198.96 ▼54.13 |
Better Search Replace /wp-admin/tools.php?page=better-search-replace | 1,491 | 2.58 | 56.68 | 171.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: search replace database, searchreplace, database, search replace, better search replace...
better-search-replace/better-search-replace.php Passed 13 tests
"Better Search Replace" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
A small plugin for running a search/replace on your WordPress database.
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
There were no executable files found in this plugin1,337 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 327 | 603 | 875 |
PO File | 3 | 83 | 92 | 310 |
JavaScript | 2 | 23 | 17 | 93 |
CSS | 2 | 2 | 10 | 39 |
SVG | 1 | 0 | 1 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 8 | 17.02% |
▷ Public methods | 43 | 91.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.51% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/css/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.26KB | 0.12KB | ▼ 53.44% |
assets/css/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-icons_ffd27a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/img/sidebar-upgrade.png | 9.95KB | 9.00KB | ▼ 9.52% |