Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.94ms] 75% from 4 tests
Server-side resources used by IP Language Switcher
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 519.45ms on /wp-admin/options-general.php?page=ip-language-switcher)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.94 ▲1.17 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.88 ▲0.78 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.32 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 89.82 ▼10.84 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.66 ▼1.73 |
IP Language /wp-admin/options-general.php?page=ip-language-switcher | 3.73 | 519.45 |
Server storage [IO: ▲0.23MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for IP Language Switcher
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.35 ▼0.03 | 1.61 ▼0.13 | 40.62 ▼5.29 |
Dashboard /wp-admin | 2,200 ▲20 | 5.57 ▼0.08 | 86.76 ▼8.65 | 39.80 ▲1.29 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.01 ▲0.05 | 33.79 ▼6.59 | 32.14 ▼6.71 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.09 ▲0.09 | 680.09 ▼15.95 | 52.59 ▲0.38 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.25 ▲0.15 | 102.72 ▼1.21 | 44.49 ▼3.56 |
IP Language /wp-admin/options-general.php?page=ip-language-switcher | 2,258 | 2.00 | 24.22 | 111.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 get_option() in wp-content/plugins/ip-language-switcher/ip-language-switcher.php:195
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #0 in ip-language-switcher/assets to your readme.txt
ip-language-switcher/ip-language-switcher.php Passed 13 tests
The main PHP file in "IP Language Switcher" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
Language is no longer a barrier for developer.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected338 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 22 | 198 |
CSS | 1 | 0 | 0 | 90 |
PO File | 1 | 9 | 10 | 30 |
JavaScript | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 215.60KB | 57.80KB | ▼ 73.19% |