Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.06ms] Passed 4 tests
An overview of server-side resources used by WPML flag in menu Extended
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.51 ▲0.79 |
Dashboard /wp-admin | 3.43 ▲0.12 | 43.67 ▼3.22 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.61 ▼4.73 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 81.35 ▼7.69 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.78 ▼0.61 |
WPML Flags in Menu Extended /wp-admin/options-general.php?page=wpml-flag-in-menu-extended | 3.32 | 31.61 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpml-flag-in-menu-extended_basics |
wpml-flag-in-menu-extended_styling |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WPML flag in menu Extended
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.48 ▲0.10 | 1.75 ▼0.14 | 44.39 ▲0.03 |
Dashboard /wp-admin | 2,209 ▲21 | 5.81 ▼0.16 | 100.16 ▼15.39 | 40.34 ▼5.75 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▲0.01 | 35.78 ▼0.22 | 35.58 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,536 ▲15 | 21.04 ▼2.32 | 682.65 ▲11.82 | 62.65 ▲0.77 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.17 ▲0.01 | 93.63 ▼19.33 | 45.40 ▼1.16 |
WPML Flags in Menu Extended /wp-admin/options-general.php?page=wpml-flag-in-menu-extended | 961 | 1.88 | 34.69 | 29.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- wpml-flag-in-menu-extended_basics
- wpml-flag-in-menu-extended_styling
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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× 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/wpml-flag-in-menu-extended/wpml-flag-in-menu-extended.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: nav, languages, wpml, menu, wp_nav_menu...
wpml-flag-in-menu-extended/wpml-flag-in-menu-extended.php Passed 13 tests
The principal PHP file in "WPML flag in menu Extended" v. 1.7 is loaded by WordPress automatically on each request
85 characters long description:
Based on the WPML flag in menu plugin from Ramon Fincken. With menu selection option.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin623 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 133 | 115 | 498 |
PO File | 1 | 40 | 40 | 113 |
CSS | 2 | 4 | 13 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 20.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.68% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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
No PNG files were detected