Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.79ms] Passed 4 tests
A check of server-side resources used by Add or Remove Www
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.01 ▼4.62 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.50 ▼12.66 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.89 ▲3.87 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.51 ▼15.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.32 ▼2.28 |
Add or Remove Www /wp-admin/options-general.php?page=add-or-remove-www | 3.22 | 31.20 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Add or Remove Www: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.38 ▲0.02 | 1.80 ▼0.31 | 42.16 ▼2.08 |
Dashboard /wp-admin | 2,201 ▲21 | 5.65 ▲0.02 | 97.98 ▲12.94 | 44.53 ▲1.44 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.03 ▲0.09 | 44.39 ▲8.91 | 35.59 ▼5.95 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.08 ▼0.02 | 681.02 ▲51.16 | 50.73 ▲3.05 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.20 ▼0.00 | 97.92 ▼3.01 | 41.80 ▼2.92 |
Add or Remove Www /wp-admin/options-general.php?page=add-or-remove-www | 824 | 2.01 | 27.29 | 32.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-or-remove-www/settings-functions.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-or-remove-www/settings-functions.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-or-remove-www/settings-page.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: subdomain, options, domain, www, configuration...
add-or-remove-www/add-or-remove-www.php 92% from 13 tests
This is the main PHP file of "Add or Remove Www" version 1.01, 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 186 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin105 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 13 | 46 | 105 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 7 | |
▷ Named functions | 7 | 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
PNG images were not found in this plugin