Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.10ms] Passed 4 tests
A check of server-side resources used by TR Edit Menu ICon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.46 ▲1.11 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.45 ▼1.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.88 ▲0.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.54 ▼8.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.49 ▼2.22 |
Server storage [IO: ▲0.01MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TR Edit Menu ICon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.17 | 1.67 ▲0.01 | 40.45 ▲0.07 |
Dashboard /wp-admin | 2,209 ▲17 | 5.85 ▲0.89 | 94.72 ▼12.22 | 37.47 ▼6.23 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.04 | 33.84 ▼5.18 | 35.19 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 18.20 ▼4.84 | 634.08 ▼18.01 | 57.19 ▼1.75 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.18 ▼0.10 | 92.68 ▼3.49 | 43.60 ▲1.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: tr_act in wp-content/plugins/tr-edit-menu-icon/inc/admin_ajax.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tr-edit-menu-icon/inc/front.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/tr-edit-menu-icon/plugin.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tr-edit-menu-icon/inc/admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/tr-edit-menu-icon/lib/tr_walker_nav_menu_edit.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: menu icon, wp menu, eidt menu icon
tr-edit-menu-icon/plugin.php 92% from 13 tests
Analyzing the main PHP file in "TR Edit Menu ICon" version 1.0.3
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("tr-edit-menu-icon.php" instead of "plugin.php")
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
Everything looks great! No dangerous files found in this plugin171 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 19 | 10 | 120 |
JavaScript | 1 | 0 | 0 | 28 |
CSS | 1 | 0 | 0 | 23 |
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.20 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin