Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.73ms] Passed 4 tests
A check of server-side resources used by Gecka Submenu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 43.09 ▲2.53 |
Dashboard /wp-admin | 3.48 ▲0.18 | 50.84 ▼3.19 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.39 ▼0.72 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 88.02 ▼6.44 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.65 ▼0.55 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_gksm-custom-menu-widget |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
gecka-submenu-pro-notice |
widget_recent-comments |
Browser metrics Passed 4 tests
Gecka Submenu: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.74 ▲0.81 | 1.73 ▼0.44 | 43.47 ▼2.36 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▲0.02 | 86.27 ▼4.23 | 42.25 ▼2.60 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.07 | 37.36 ▲1.18 | 36.02 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.14 ▲0.05 | 650.96 ▼38.40 | 43.44 ▼24.52 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▼0.01 | 98.20 ▼8.24 | 40.88 ▼6.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-comments
- gecka-submenu-pro-notice
- widget_gksm-custom-menu-widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- 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
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
Please fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: item_id in wp-content/plugins/gecka-submenu/views/Nav-Menu-Fields.php on line 5
- > PHP Notice
Undefined index: wp_version in wp-content/plugins/gecka-submenu/models/Nav-Menu-Edit-Walker.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/gecka-submenu/views/Nav-Menu-Fields.php:5
- > PHP Notice
Undefined variable: item_id in wp-content/plugins/gecka-submenu/views/Nav-Menu-Fields.php on line 4
- > PHP Notice
Undefined variable: item_id in wp-content/plugins/gecka-submenu/views/Nav-Menu-Fields.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/gecka-submenu/gecka-submenu.class.php:235
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gecka-submenu/gecka-submenu.php:30
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/gecka-submenu/models/Nav-Menu-Edit-Walker.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gecka-submenu/widgets/Custom-menu.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Advanced custom menu widget), #2 (Autopopulating with child pages)
- Tags: There are too many tags (11 tag instead of maximum 10)
gecka-submenu/gecka-submenu.php Passed 13 tests
This is the main PHP file of "Gecka Submenu" version 0.7.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Enhances the worpdress nav menu system, autopopulate with children pages
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 detected1,593 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 412 | 209 | 1,366 |
PO File | 1 | 47 | 74 | 120 |
CSS | 4 | 14 | 0 | 57 |
JavaScript | 3 | 24 | 1 | 50 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 21.90 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 91.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.93% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.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 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 14.94KB | 7.43KB | ▼ 50.25% |
screenshot-2.png | 12.38KB | 6.53KB | ▼ 47.27% |