Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.21ms] Passed 4 tests
This is a short check of server-side resources used by Simple Website Redirect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.60 ▼1.27 |
Dashboard /wp-admin | 3.54 ▲0.24 | 47.87 ▼0.17 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.20 ▼0.48 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 95.26 ▲1.45 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 36.71 ▲1.07 |
Website Redirect /wp-admin/options-general.php?page=simple-website-redirect | 3.37 | 34.76 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Website Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.37 ▼1.23 | 1.81 ▼0.42 | 40.59 ▼5.10 |
Dashboard /wp-admin | 2,210 ▲25 | 5.84 ▼0.01 | 106.75 ▼2.81 | 41.35 ▼3.46 |
Posts /wp-admin/edit.php | 2,090 ▲22 | 1.97 ▼0.02 | 39.60 ▲2.92 | 34.82 ▲2.28 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 18.65 ▼4.62 | 604.66 ▼63.84 | 50.87 ▼10.63 |
Media Library /wp-admin/upload.php | 1,392 ▲13 | 4.19 ▼0.08 | 97.72 ▼5.81 | 42.21 ▼2.06 |
Website Redirect /wp-admin/options-general.php?page=simple-website-redirect | 891 | 1.72 | 26.85 | 29.05 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/simple-website-redirect/SimpleWebsiteRedirect.php:60
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
6 plugin tags: redirect, redirection, forwarding, site, website...
simple-website-redirect/SimpleWebsiteRedirect.php 92% from 13 tests
The main PHP file in "Simple Website Redirect" ver. 1.2.8 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-website-redirect.php" instead of "SimpleWebsiteRedirect.php")
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
Good job! No executable or dangerous file extensions detected1,176 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 260 | 736 | 1,129 |
JSON | 1 | 0 | 0 | 47 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 26.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 49 | 56.98% |
▷ Public methods | 84 | 97.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.33% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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