Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.76MB] [CPU: ▲1.63ms] Passed 4 tests
Server-side resources used by Redirect Modal Based On Country
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 178.03 ▲134.41 |
Dashboard /wp-admin | 4.18 ▲0.88 | 50.60 ▼1.30 |
Posts /wp-admin/edit.php | 4.27 ▲0.91 | 55.89 ▲6.81 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.88 | 96.16 ▼13.32 |
Media Library /wp-admin/upload.php | 4.10 ▲0.88 | 46.62 ▲14.32 |
Redirect Modal Based On Country /wp-admin/options-general.php?page=rmboc_options | 6.22 | 58.55 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 415 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
rmboc_cookie_name |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Redirect Modal Based On Country
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲139 | 14.19 ▼0.12 | 15.31 ▲13.06 | 40.70 ▼10.56 |
Dashboard /wp-admin | 2,221 ▲33 | 4.90 ▼0.92 | 114.27 ▲4.51 | 44.43 ▲3.30 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.11 ▲0.06 | 36.38 ▼0.39 | 34.23 ▲3.44 |
Add New Post /wp-admin/post-new.php | 1,524 ▼9 | 17.67 ▼5.34 | 678.14 ▲87.37 | 60.97 ▲15.06 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.31 ▲0.07 | 98.63 ▼6.60 | 39.93 ▼4.08 |
Redirect Modal Based On Country /wp-admin/options-general.php?page=rmboc_options | 5,424 | 1.95 | 34.58 | 49.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redirect-modal-based-on-country/vendor/cmb2/includes/helper-functions.php:131
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/redirect-modal-based-on-country/vendor/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/redirect-modal-based-on-country/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/redirect-modal-based-on-country/vendor/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/redirect-modal-based-on-country/redirect-modal-based-on-country.php:30
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/redirect-modal-based-on-country/vendor/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/redirect-modal-based-on-country/vendor/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/redirect-modal-based-on-country/vendor/cmb2/includes/CMB2_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/redirect-modal-based-on-country/vendor/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/redirect-modal-based-on-country/vendor/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: geo, ip, redirect, redirect by country, redirect by ip...
redirect-modal-based-on-country/redirect-modal-based-on-country.php Passed 13 tests
The main file in "Redirect Modal Based On Country" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Let your visitors know that your website is also available for their country
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin52,644 lines of code in 247 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 132 | 14,375 | 18,646 | 32,599 |
PHP | 69 | 2,301 | 6,937 | 7,579 |
CSS | 14 | 250 | 1,194 | 4,555 |
JSON | 3 | 0 | 0 | 4,272 |
JavaScript | 9 | 363 | 629 | 1,473 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 3 | 244 | 0 | 755 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 17.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 9 | 11.69% |
▷ Concrete classes | 68 | 88.31% |
▷ Final classes | 0 | 0.00% |
Methods | 570 | |
▷ Static methods | 91 | 15.96% |
▷ Public methods | 471 | 82.63% |
▷ Protected methods | 89 | 15.61% |
▷ Private methods | 10 | 1.75% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |