Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼148.28ms] Passed 4 tests
Server-side resources used by Mobile Site Redirect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.70 ▼0.02 | 26.01 ▼2.48 |
Dashboard /wp-admin | 3.21 ▲0.15 | 57.90 ▲11.52 |
Posts /wp-admin/edit.php | 3.06 ▼0.05 | 24.70 ▼23.91 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.13 | 97.44 ▼558.38 |
Media Library /wp-admin/upload.php | 3.15 ▲0.15 | 36.03 ▼8.36 |
Mobile Site Redirect /wp-admin/options-general.php?page=mobired_settings | 3.12 | 31.17 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Mobile Site Redirect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.85 ▲0.30 | 5.14 ▼3.07 | 53.15 ▲0.85 |
Dashboard /wp-admin | 2,978 ▲47 | 5.95 ▼0.20 | 142.37 ▲2.73 | 120.14 ▲6.41 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.82 ▲0.13 | 70.84 ▲7.59 | 101.74 ▲16.42 |
Add New Post /wp-admin/post-new.php | 1,686 ▲105 | 18.83 ▲2.43 | 385.09 ▼63.05 | 118.79 ▲3.07 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.01 ▼0.03 | 152.31 ▼37.08 | 128.96 ▼17.15 |
Mobile Site Redirect /wp-admin/options-general.php?page=mobired_settings | 1,044 | 2.08 | 57.16 | 68.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=mobired_settings
- > Notice in wp-content/plugins/mobile-site-redirect/mobired_admin.php+2
Undefined index: mobired_hidden
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-site-redirect/mobile-site-redirect.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mobile-site-redirect/mobired_admin.php:16
- > PHP Notice
Undefined index: mobired_hidden in wp-content/plugins/mobile-site-redirect/mobired_admin.php on line 2
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mobile-site-redirect ===
)
mobile-site-redirect/mobile-site-redirect.php 92% from 13 tests
The primary PHP file in "Mobile Site Redirect" version 1.2.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 319 characters long)
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
Success! There were no dangerous files found in this plugin648 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 154 | 564 | 646 |
JavaScript | 1 | 2 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review 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.83 |
Average class complexity | 113.00 |
▷ Minimum class complexity | 113.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.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 | 31 | |
▷ Static methods | 9 | 29.03% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 2 | 6.45% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.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 images were found in this plugin