Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼145.37ms] Passed 4 tests
Analyzing server-side resources used by DDev Find Replace
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 30.80 ▼2.78 |
Dashboard /wp-admin | 3.08 ▲0.03 | 38.45 ▼6.83 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 42.23 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 86.11 ▼571.51 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.12 ▲1.02 |
Find Replace /wp-admin/admin.php?page=find_replace | 2.99 | 25.62 |
Remove Replace Tool /wp-admin/admin.php?page=remove_replace_tool | 2.99 | 28.51 |
Find Replace Tool /wp-admin/admin.php?page=find_replace_tool | 3.00 | 28.17 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: 2 new tables, no new options
New tables |
---|
wp_find_replace |
wp_presets |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DDev Find Replace
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,741 ▲146 | 15.87 ▲0.25 | 9.43 ▲1.99 | 50.58 ▲1.64 |
Dashboard /wp-admin | 3,007 ▲73 | 5.90 ▼0.22 | 133.98 ▼0.19 | 100.73 ▼8.22 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.81 ▲0.13 | 69.18 ▲0.69 | 89.33 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,700 ▲28 | 18.84 ▲0.34 | 374.08 ▲20.03 | 110.61 ▲5.56 |
Media Library /wp-admin/upload.php | 1,844 ▲34 | 5.00 ▼0.02 | 161.62 ▲17.12 | 108.15 ▼5.77 |
Find Replace /wp-admin/admin.php?page=find_replace | 1,117 | 2.09 | 56.04 | 98.40 |
Remove Replace Tool /wp-admin/admin.php?page=remove_replace_tool | 1,105 | 2.33 | 58.66 | 76.70 |
Find Replace Tool /wp-admin/admin.php?page=find_replace_tool | 1,264 | 2.36 | 62.01 | 90.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=find_replace_tool
- > Notice in wp-content/plugins/ddev-find-replace/inc/ajax/get-all-presets.php+25
Undefined variable: output
SRP 50% from 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 following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ddev-find-replace/ddev-find-replace.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=find_replace
- > Network (severe)
wp-admin/%3C?php%20echo%20plugins_url(%27/assets/images/find-replace.png%27,%20DDEV_FR_PLUGIN_URL)%20?%3E - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=find_replace
- > Network (severe)
wp-admin/%3C?php%20echo%20plugins_url(%27/assets/images/remove-replace.png%27,%20DDEV_FR_PLUGIN_URL)%20?%3E - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=find_replace_tool
- > Javascript (severe) in unknown
/wp-content/plugins/ddev-find-replace/assets/js/find-replace.js?ver=5.8.1 13:24 Uncaught TypeError: Cannot read properties of null (reading 'status')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ddev-find-replace ===
)
ddev-find-replace/ddev-find-replace.php 85% from 13 tests
This is the main PHP file of "DDev Find Replace" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 281 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.2")
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 plugin1,015 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 90 | 60 | 653 |
JavaScript | 2 | 55 | 33 | 361 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/remove-replace.png | 13.67KB | 7.31KB | ▼ 46.55% |
assets/images/find-replace.png | 18.88KB | 9.63KB | ▼ 48.99% |