84% tr-edit-menu-icon

Code Review | TR Edit Menu ICon

WordPress plugin TR Edit Menu ICon scored84%from 54 tests.

About plugin

  • Plugin page: tr-edit-menu-icon
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Apr 19, 2013
  • Latest release: Aug 12, 2013
  • Number of updates: 4
  • Update frequency: every 28.8 days
  • Top authors: pntrinh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,221 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.46 ▲1.11
Dashboard /wp-admin3.31 ▲0.0144.45 ▼1.57
Posts /wp-admin/edit.php3.36 ▲0.0043.88 ▲0.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.54 ▼8.75
Media Library /wp-admin/upload.php3.23 ▲0.0030.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.171.67 ▲0.0140.45 ▲0.07
Dashboard /wp-admin2,209 ▲175.85 ▲0.8994.72 ▼12.2237.47 ▼6.23
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0433.84 ▼5.1835.19 ▼3.67
Add New Post /wp-admin/post-new.php1,543 ▲1018.20 ▼4.84634.08 ▼18.0157.19 ▼1.75
Media Library /wp-admin/upload.php1,385 ▲34.18 ▼0.1092.68 ▼3.4943.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP61910120
JavaScript10028
CSS10023

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 code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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