Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/bravo-search-and-replace/activation.php+23
Trying to get property 'num_rows' of non-object
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.79ms] Passed 4 tests
An overview of server-side resources used by Bravo Search & Replace
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.77 ▼1.33 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.92 ▼1.42 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.65 ▼3.35 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 100.79 ▼1.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.93 ▼5.02 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_bravo_sp |
New WordPress options |
---|
BRAVOSP_notice |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bravo Search & Replace
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.25 ▼1.49 | 2.01 ▲0.11 | 42.27 ▲2.23 |
Dashboard /wp-admin | 2,225 ▲37 | 4.87 ▼0.16 | 99.13 ▼4.74 | 39.28 ▼4.37 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▼0.00 | 40.33 ▼1.80 | 35.31 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 18.44 ▲0.83 | 615.84 ▲6.85 | 50.57 ▼0.21 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.21 ▲0.02 | 101.76 ▼7.65 | 47.33 ▲0.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
bravo-search-and-replace/bravo-search-and-replace.php 85% from 13 tests
The primary PHP file in "Bravo Search & Replace" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 174 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin485 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 115 | 70 | 374 |
JavaScript | 1 | 4 | 0 | 92 |
CSS | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected