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
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.72ms] Passed 4 tests
Analyzing server-side resources used by Equivalent Mobile Redirect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 44.34 ▲5.30 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.74 ▲1.34 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.89 ▲6.11 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.35 ▼9.64 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.05 ▲5.87 |
EMR Settings /wp-admin/options-general.php?page=emr_plugin_page | 3.29 | 30.03 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
ndg_spr_version |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Equivalent Mobile Redirect
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.41 ▲0.00 | 1.66 ▲0.03 | 40.71 ▼1.56 |
Dashboard /wp-admin | 2,210 ▲22 | 5.08 ▲0.14 | 114.36 ▲6.36 | 44.02 ▲0.75 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.04 | 38.30 ▲0.43 | 34.21 ▲4.41 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,716 | 26.18 ▲2.81 | 853.36 ▲142.65 | 52.05 ▼1.12 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▼0.00 | 99.30 ▼6.98 | 41.20 ▼3.75 |
EMR Settings /wp-admin/options-general.php?page=emr_plugin_page | 945 | 2.02 | 24.49 | 28.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- ndg_spr_version
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/equivalent-mobile-redirect/includes/class-emr.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/equivalent-mobile-redirect/includes/emr-options.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: mobile, mobile detect, redirection, mobile redirect, equivalent
equivalent-mobile-redirect/equivalent-mobile-redirect.php 92% from 13 tests
The main PHP file in "Equivalent Mobile Redirect" ver. 4.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin1,088 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 236 | 801 | 1,059 |
XML | 1 | 5 | 14 | 17 |
JSON | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.77 |
Average class complexity | 105.50 |
▷ Minimum class complexity | 77.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 5.45 |
▷ 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 | 47 | |
▷ Static methods | 9 | 19.15% |
▷ Public methods | 44 | 93.62% |
▷ Protected methods | 2 | 4.26% |
▷ Private methods | 1 | 2.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 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
There are no PNG files in this plugin