Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.14MB] [CPU: ▼43.50ms] Passed 4 tests
A check of server-side resources used by PHP Mobile Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▼0.63 | 17.97 ▼24.05 |
Dashboard /wp-admin | 2.87 ▼0.44 | 17.73 ▼34.13 |
Posts /wp-admin/edit.php | 2.87 ▼0.49 | 19.02 ▼36.07 |
Add New Post /wp-admin/post-new.php | 2.87 ▼3.02 | 18.47 ▼79.73 |
Media Library /wp-admin/upload.php | 2.87 ▼0.36 | 16.80 ▼20.59 |
PHP Redirect /wp-admin/options-general.php?page=pmr-settings | 2.87 | 16.63 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
PHP Mobile Redirect: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.35 ▼1.10 | 4.00 ▲2.37 | 41.60 ▼4.05 |
Dashboard /wp-admin | 2,210 ▲25 | 5.86 ▼0.02 | 105.23 ▼9.59 | 40.50 ▲0.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 40.97 ▼0.48 | 35.03 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.31 ▼0.32 | 664.17 ▲33.60 | 52.66 ▲2.03 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▲0.03 | 106.71 ▲0.23 | 46.12 ▼0.53 |
PHP Redirect /wp-admin/options-general.php?page=pmr-settings | 861 | 2.03 | 28.95 | 26.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/php-mobile-redirect/includes/functions.php+9
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pmr-settings
- > Notice in wp-content/plugins/php-mobile-redirect/includes/pmr_admin_form.php+38
Trying to access array offset on value of type bool
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
- 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/php-mobile-redirect/includes/pmr_admin_form.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/php-mobile-redirect/includes/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/php-mobile-redirect/php-mobile-redirect.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=pmr-settings
- > Network (severe)
http://www.code96wd.com/wp-content/uploads/2013/03/Code-96-WordPress-Design.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: mobile detection, mobile detect, mobile redirect
php-mobile-redirect/php-mobile-redirect.php Passed 13 tests
Analyzing the main PHP file in "PHP Mobile Redirect" version 1.4
64 characters long description:
Easily redirect mobile users to the mobile version of your site.
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
There were no executable files found in this plugin471 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 176 | 292 | 471 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.02 |
Average class complexity | 108.00 |
▷ Minimum class complexity | 108.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin