Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.50ms] Passed 4 tests
An overview of server-side resources used by ACME WPML Language Switch
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.97 ▼1.37 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.64 ▼0.98 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.07 ▼5.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.66 ▼14.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.63 ▲4.76 |
Language Switch /wp-admin/admin.php?page=acme-wpml-language-switch | 3.31 | 31.56 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ACME WPML Language Switch
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.35 ▼1.00 | 4.45 ▲2.60 | 43.11 ▼10.95 |
Dashboard /wp-admin | 2,225 ▲37 | 4.86 ▼0.03 | 98.59 ▼3.92 | 41.61 ▼2.24 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 1.97 ▼0.05 | 33.84 ▼4.14 | 34.48 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 17.56 ▼5.48 | 677.45 ▲25.42 | 49.67 ▼3.00 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.25 ▲0.05 | 108.34 ▲10.69 | 52.01 ▲6.42 |
Language Switch /wp-admin/admin.php?page=acme-wpml-language-switch | 789 | 2.06 | 24.86 | 25.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/acme-wpml-language-switch/public/partials/acme-wpml-language-switch-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/acme-wpml-language-switch/admin/partials/acme-wpml-language-switch-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== acme-wpml-language-switch ===
)
acme-wpml-language-switch/acme-wpml-language-switch.php Passed 13 tests
The entry point to "ACME WPML Language Switch" version 1.1.1 is a PHP file that has certain tags in its header comment area
137 characters long description:
Have Just Two languages WPML website? Replace WMPL default switcher with this very quick menu item. It just displays the translation link
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 plugin514 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 168 | 603 | 380 |
PO File | 2 | 42 | 56 | 128 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin