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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▼326.35ms] Passed 4 tests
Server-side resources used by Advanced Mobile Redirect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.53 | 69.38 ▲14.12 |
Dashboard /wp-admin | 3.75 ▲0.34 | 40.11 ▼8.73 |
Posts /wp-admin/edit.php | 3.97 ▲0.33 | 44.85 ▲2.96 |
Add New Post /wp-admin/post-new.php | 7.21 ▲0.24 | 109.63 ▼1,301.29 |
Media Library /wp-admin/upload.php | 3.62 ▲0.33 | 28.86 ▲1.68 |
Advanced Mobile Redirect /wp-admin/options-general.php?page=advanced-mobile-redirect/advanced-mobile-redirect.php | 3.59 | 55.51 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
mobileredirecttoggle |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Mobile Redirect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,777 ▲55 | 15.69 ▲0.02 | 6.87 ▲0.82 | 2.11 ▼0.47 |
Dashboard /wp-admin | 2,883 ▲29 | 6.10 ▼0.05 | 122.05 ▼20.89 | 158.53 ▼10.92 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.23 ▼0.01 | 62.25 ▼2.37 | 137.56 ▼38.16 |
Add New Post /wp-admin/post-new.php | 1,686 ▲25 | 16.97 ▼0.07 | 381.31 ▼21.62 | 197.60 ▲41.44 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.53 ▲0.01 | 145.53 ▲9.45 | 184.93 ▼5.41 |
Advanced Mobile Redirect /wp-admin/options-general.php?page=advanced-mobile-redirect/advanced-mobile-redirect.php | 9,924 | 2.50 | 58.29 | 166.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- mobileredirecttoggle
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-mobile-redirect/advanced-mobile-redirect.php:79
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=advanced-mobile-redirect/advanced-mobile-redirect.php
- > Network (severe)
http://slimspots.org/adview.gif - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 75% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: A description for screenshot #0 is required in advanced-mobile-redirect/assets to your readme.txt
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #2 (banner-772×250.png), #3 (icon-128x128.png), #4 (banner-1544×500.png)
- Donate link: Please fix this invalid URI: ""
advanced-mobile-redirect/advanced-mobile-redirect.php Passed 13 tests
Analyzing the main PHP file in "Advanced Mobile Redirect" version 1.2
52 characters long description:
Select a URL to redirect mobile users by device type
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
There were no executable files found in this plugin1,787 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 272 | 682 | 1,787 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 62.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 5.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 9 | 23.08% |
▷ Public methods | 37 | 94.87% |
▷ Protected methods | 2 | 5.13% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 57 | |
▷ Global constants | 48 | 84.21% |
▷ Class constants | 9 | 15.79% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot1.png | 76.67KB | 35.18KB | ▼ 54.11% |