Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/foundation-top-bar-navigation-menu/foundation-top-bar-menu.php+80
Declaration of ftb_menu::start_lvl(&$output, $depth = 0) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.89ms] Passed 4 tests
A check of server-side resources used by Foundation Top Bar Navigation Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.98 ▼35.58 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.85 ▼44.05 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.35 ▼46.37 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.51 ▼89.55 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.87 ▼27.61 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Foundation Top Bar Navigation Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.24 ▼1.19 | 4.53 ▲2.71 | 41.61 ▼2.29 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲1.00 | 111.56 ▼3.23 | 40.20 ▼10.76 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.04 | 34.86 ▼5.18 | 36.16 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,542 ▲20 | 18.37 ▼4.97 | 596.96 ▼44.22 | 55.79 ▼8.11 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.03 | 98.21 ▼1.25 | 42.03 ▲0.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/foundation-top-bar-navigation-menu/foundation-top-bar-menu.php+80
Declaration of ftb_menu::start_lvl(&$output, $depth = 0) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_nav_menu() in wp-content/plugins/foundation-top-bar-navigation-menu/foundation-top-bar-menu.php:11
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: foundation, menu, navigation, responsive, dropdown...
foundation-top-bar-navigation-menu/foundation-top-bar-menu.php 92% from 13 tests
The primary PHP file in "Foundation Top Bar Navigation Menu" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("foundation-top-bar-navigation-menu.php" instead of "foundation-top-bar-menu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,452 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 206 | 153 | 824 |
CSS | 3 | 13 | 3 | 519 |
PHP | 1 | 37 | 11 | 109 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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