Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼138.41ms] Passed 4 tests
An overview of server-side resources used by Country Specific Menu Items
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.17 | 35.96 ▲13.77 |
Dashboard /wp-admin | 3.13 ▲0.07 | 43.78 ▼1.61 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 45.04 ▲1.39 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 87.73 ▼560.32 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 34.51 ▲6.92 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Country Specific Menu Items
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲146 | 16.28 ▲0.62 | 9.35 ▼0.02 | 49.87 ▼1.68 |
Dashboard /wp-admin | 2,993 ▲56 | 5.96 ▲0.01 | 136.26 ▼13.58 | 120.61 ▲6.90 |
Posts /wp-admin/edit.php | 2,777 ▲41 | 2.74 ▲0.02 | 63.24 ▼7.59 | 98.70 ▲13.13 |
Add New Post /wp-admin/post-new.php | 1,645 ▼27 | 21.40 ▲2.33 | 267.28 ▼127.90 | 107.50 ▼1.28 |
Media Library /wp-admin/upload.php | 1,788 ▼19 | 5.03 ▲0.01 | 152.73 ▲10.43 | 127.48 ▲8.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/location-specific-menu-items-by-country/includes/walker-nav-menu-edit.php
- > /wp-content/plugins/location-specific-menu-items-by-country/CSMI.php
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: menu, navigation menu, nav-menu, navigation, country...
location-specific-menu-items-by-country/CSMI.php 92% from 13 tests
The entry point to "Country Specific Menu Items" version 1.0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("location-specific-menu-items-by-country.php" instead of "CSMI.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected911 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 19 | 23 | 560 |
Pascal | 1 | 44 | 1,557 | 281 |
CSS | 1 | 1 | 1 | 69 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An short overview of 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.37 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/resources/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/resources/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |