Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲0.56ms] Passed 4 tests
This is a short check of server-side resources used by Search Redirections
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 47.00 ▲4.96 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.11 ▼0.12 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.64 ▼3.48 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 101.26 ▲4.94 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 39.01 ▲0.88 |
Search Redirections /wp-admin/options-general.php?page=search_redirections_options | 3.27 | 35.00 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Search Redirections
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▲0.14 | 1.60 ▼0.56 | 41.15 ▼7.37 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.01 | 94.67 ▲7.53 | 36.92 ▼2.92 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.04 | 40.12 ▼1.77 | 35.05 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.11 ▼0.42 | 676.54 ▼10.87 | 64.55 ▲12.55 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.11 ▼0.09 | 98.53 ▼12.80 | 43.40 ▼3.77 |
Search Redirections /wp-admin/options-general.php?page=search_redirections_options | 885 | 1.65 | 25.91 | 25.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-redirections/search-redirections.php:339
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: search, search terms, redirection, redirect
search-redirections/search-redirections.php Passed 13 tests
The primary PHP file in "Search Redirections" version 0.1.3 is used by WordPress to initiate all plugin functionality
49 characters long description:
Create redirect rules for any given search terms.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin493 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 54 | 267 |
JavaScript | 1 | 3 | 0 | 131 |
PO File | 1 | 16 | 0 | 38 |
CSS | 1 | 0 | 0 | 35 |
Markdown | 1 | 12 | 0 | 22 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 16 | 100.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin