Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.14MB] [CPU: ▼9.78ms] Passed 4 tests
An overview of server-side resources used by Language Redirector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 17.42 ▼20.92 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.10 ▼13.68 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.03 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.01 ▼4.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.03 ▲6.79 |
Language Redirector Country Url /wp-admin/admin.php?page=lre_language_redirector_setup_url | 3.20 | 30.19 |
Language Redirector /wp-admin/admin.php?page=language-redirector | 3.20 | 30.78 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Language Redirector: 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,826 ▲55 | 13.23 ▼1.39 | 1.61 ▼0.65 | 38.88 ▼3.28 |
Dashboard /wp-admin | 2,232 ▲43 | 5.85 ▼0.01 | 107.63 ▼3.30 | 75.28 ▲33.07 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.00 ▼0.01 | 39.65 ▲3.13 | 34.35 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.09 ▲0.09 | 724.56 ▲85.45 | 55.32 ▼1.72 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.19 ▼0.02 | 99.06 ▼1.82 | 46.93 ▲2.19 |
Language Redirector Country Url /wp-admin/admin.php?page=lre_language_redirector_setup_url | 853 | 2.02 | 23.14 | 27.29 |
Language Redirector /wp-admin/admin.php?page=language-redirector | 823 | 2.02 | 22.75 | 25.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=language-redirector
- > Notice in wp-content/plugins/language-redirector/language-redirector.php+94
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/language-redirector/classes/class.lr.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/language-redirector/language-redirector.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Language Redirector settings page)
language-redirector/language-redirector.php Passed 13 tests
The primary PHP file in "Language Redirector" version 1.0.1 is used by WordPress to initiate all plugin functionality
45 characters long description:
Plugin that performs a country-based redirect
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin232 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 54 | 128 |
PO File | 3 | 27 | 27 | 104 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 53.38KB | 24.66KB | ▼ 53.80% |
images/translation.png | 0.86KB | 0.88KB | 0.00% |
images/delete.png | 0.80KB | 0.87KB | 0.00% |
images/edit.png | 0.46KB | 0.50KB | 0.00% |
screenshot-1.png | 40.14KB | 18.62KB | ▼ 53.61% |