Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.67ms] Passed 4 tests
An overview of server-side resources used by Url Redirect Rewrite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.39 ▼7.30 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.30 ▼7.16 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.02 ▲3.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.84 ▲1.24 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.99 ▼1.45 |
URL Redirect Rewrite /wp-admin/tools.php?page=wp_url_redirect_rewrite | 3.24 | 30.08 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
url_redirect_rewrite_map |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Url Redirect Rewrite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.60 ▼0.77 | 1.84 ▲0.12 | 42.20 ▼1.90 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.06 | 111.05 ▼3.49 | 41.64 ▼8.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 39.77 ▲2.42 | 34.04 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,542 ▲13 | 23.35 ▲5.05 | 668.46 ▲54.90 | 57.37 ▲7.43 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▼0.04 | 96.38 ▼4.05 | 41.28 ▼4.01 |
URL Redirect Rewrite /wp-admin/tools.php?page=wp_url_redirect_rewrite | 719 | 1.14 | 6.86 | 17.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- url_redirect_rewrite_map
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/tools.php?page=wp_url_redirect_rewrite
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/url-redirect-and-rewrite/templates/tools.php on line 29 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/url-redirect-and-rewrite/templates/tools.php(29): do_settings_fields()
#1 wp-content/plugins/url-redirect-and-rewrite/url-redirect-rewrite.php(135): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): URL_Redirect_Rewrite->url_redirect_rewrite_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/tools.php(40): require_once('/var/www/wordpr...')
#7 {main}
thrown
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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/url-redirect-and-rewrite/url-redirect-rewrite.php:190
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/url-redirect-and-rewrite/templates/tools.php:28
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/url-redirect-and-rewrite/templates/tools.php on line 3
- > PHP Notice
Undefined variable: map in wp-content/plugins/url-redirect-and-rewrite/templates/tools.php on line 3
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: redirect, url rewrite, redirecting, rewriting, rewrite...
url-redirect-and-rewrite/url-redirect-rewrite.php 85% from 13 tests
Analyzing the main PHP file in "Url Redirect Rewrite" version 0.0.1
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("url-redirect-and-rewrite.php" instead of "url-redirect-rewrite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected253 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 34 | 206 |
JavaScript | 1 | 12 | 0 | 47 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 7 | |
▷ Static methods | 2 | 28.57% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin