Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼304.31ms] Passed 4 tests
An overview of server-side resources used by Simple Mobile URL Redirect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.04 | 59.91 ▲2.76 |
Dashboard /wp-admin | 4.07 ▲0.04 | 37.90 ▼7.84 |
Posts /wp-admin/edit.php | 4.36 ▲0.04 | 41.02 ▼13.93 |
Add New Post /wp-admin/post-new.php | 7.60 ▲0.01 | 95.90 ▼1,189.33 |
Media Library /wp-admin/upload.php | 4.01 ▲0.03 | 27.45 ▼6.15 |
Mobile Redirect /wp-admin/options-general.php?page=simple-mobile-url-redirect/mobile-redirect.php | 3.98 | 28.93 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Simple Mobile URL Redirect
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲78 | 15.80 ▼0.27 | 5.96 ▼0.18 | 2.59 ▲0.26 |
Dashboard /wp-admin | 2,897 ▲37 | 6.12 ▼0.02 | 120.67 ▼6.02 | 204.27 ▲39.47 |
Posts /wp-admin/edit.php | 2,690 ▼1 | 3.24 ▲0.00 | 65.81 ▲0.28 | 150.28 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,663 ▼27 | 21.86 ▲0.97 | 437.32 ▼51.36 | 213.06 ▲49.52 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.53 ▲0.01 | 147.00 ▼1.48 | 241.03 ▲50.01 |
Mobile Redirect /wp-admin/options-general.php?page=simple-mobile-url-redirect/mobile-redirect.php | 1,136 | 2.37 | 57.25 | 110.74 |
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
Uninstall script ran successfully
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 no errors were found, this is by no means an exhaustive test
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 fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-mobile-url-redirect/mobile-redirect.php:40
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
simple-mobile-url-redirect/mobile-redirect.php 92% from 13 tests
"Simple Mobile URL Redirect" version 1.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-mobile-url-redirect.php" instead of "mobile-redirect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected107 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 25 | 107 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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
No PNG images were found in this plugin