Benchmarks
Plugin footprint 83% 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: ▲0.16MB] [CPU: ▼3.44ms] Passed 4 tests
Server-side resources used by Multi Mobile Redirect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 44.68 ▲7.01 |
Dashboard /wp-admin | 3.48 ▲0.13 | 47.97 ▼11.84 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.10 ▲1.92 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 90.16 ▼5.63 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.74 ▲1.78 |
Mobile Redirect /wp-admin/options-general.php?page=mobile-redirect | 3.37 | 29.52 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Multi Mobile Redirect: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.10 | 1.78 ▼0.08 | 42.52 ▲1.44 |
Dashboard /wp-admin | 2,207 ▲22 | 4.85 ▼1.01 | 111.36 ▼2.85 | 41.11 ▲2.70 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.04 | 40.16 ▼0.27 | 34.44 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.53 ▲6.03 | 662.50 ▼6.09 | 73.82 ▲21.36 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.17 ▼0.03 | 95.79 ▼3.28 | 42.21 ▼0.62 |
Mobile Redirect /wp-admin/options-general.php?page=mobile-redirect | 885 | 1.87 | 26.70 | 58.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/multi-mobile-redirect/includes/page.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/multi-mobile-redirect/includes/page.php on line 16
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/multi-mobile-redirect/includes/page.php on line 65
- > PHP Notice
Undefined variable: options in wp-content/plugins/multi-mobile-redirect/includes/page.php on line 16
- > PHP Notice
Undefined variable: options in wp-content/plugins/multi-mobile-redirect/includes/page.php on line 65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-mobile-redirect/multi-mobile-redirect.php:19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: multi mobile redirect, mobile redirect
multi-mobile-redirect/multi-mobile-redirect.php Passed 13 tests
The principal PHP file in "Multi Mobile Redirect" v. 1.0 is loaded by WordPress automatically on each request
51 characters long description:
Simple redirect to handle redirect for mobile pages
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
No dangerous file extensions were detected3,889 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,959 |
PHP | 3 | 170 | 652 | 814 |
JavaScript | 3 | 6 | 8 | 84 |
CSS | 5 | 3 | 24 | 32 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.86 |
Average class complexity | 73.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 9 | 20.45% |
▷ Public methods | 42 | 95.45% |
▷ Protected methods | 2 | 4.55% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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 files were detected